Skip to content

Commit 4e988df

Browse files
Release 1.0
1 parent 8c1dd6b commit 4e988df

4 files changed

Lines changed: 30 additions & 29 deletions

File tree

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h1>
66

77
[![Discord](https://img.shields.io/discord/1091830813240348732?color=5865F2&label=discord&style=for-the-badge)](https://discord.gg/EduvcVmKS7)
8-
[![1.21.11](https://img.shields.io/badge/Latest_version-1.21.11-4fa31a?style=for-the-badge)](https://github.com/ModernSpout/ChinesePaperLamps-plugin/actions/workflows/build.yml)
8+
[![1.21.11](https://img.shields.io/badge/Latest_version-1.21.11-4fa31a?style=for-the-badge)](https://github.com/ModernSpout/ChinesePaperLamps-plugin/releases/download/1.0/ChinesePaperLamps-1.0.jar)
99

1010
<a href="design/lantern.png"><img src="design/lantern_small.png"></a>
1111

@@ -29,12 +29,16 @@ Adds fully server-side Chinese paper lamps, lit and unlit.
2929
</tr>
3030
</table>
3131

32-
## Installation
32+
## Download
33+
34+
* [Latest version: 1.0 (MC 1.21.11)](https://github.com/ModernSpout/ChinesePaperLamps-plugin/releases/download/1.0/ChinesePaperLamps-1.0.jar)
35+
* Development versions: download from
36+
[Actions](https://github.com/ModernSpout/ChinesePaperLamps-plugin/actions/workflows/build.yml),
37+
under **Artifacts**
38+
* [Older releases](https://github.com/ModernSpout/ChinesePaperLamps-plugin/releases)
3339

34-
Download the latest JAR from
35-
[GitHub Actions](https://github.com/ModernSpout/ChinesePaperLamps-plugin/actions/workflows/build.yml),
36-
under **Artifacts**.
40+
## Installation
3741

38-
Place the file into the `plugins` folder.
42+
Place the `.jar` file into the `plugins` folder.
3943

4044
Requires [Spout](https://github.com/ModernSpout/Spout-Paper-server).

build.gradle.kts

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import java.net.URI
22
import java.nio.file.Files
3+
import java.nio.file.StandardCopyOption
34

45
plugins {
56
id("java-library")
@@ -12,8 +13,9 @@ repositories {
1213
maven { url = uri("https://jitpack.io") }
1314
}
1415

16+
val spoutVersion = project.providers.gradleProperty("spoutVersion").get()
1517
dependencies {
16-
compileOnly("com.github.ModernSpout:Spout-Paper-server:ecd8613d52")
18+
compileOnly("com.github.ModernSpout:Spout-Paper-server:$spoutVersion")
1719
}
1820

1921
java {
@@ -28,36 +30,30 @@ tasks {
2830
dependsOn(shadowJar)
2931
}
3032

33+
val spoutJarURL =
34+
"https://github.com/ModernSpout/Spout-Paper-server/releases/download/$spoutVersion/spout-$spoutVersion.jar"
3135
register("downloadServer") {
32-
group = "spout"
33-
doFirst {
34-
serverDir.mkdirs()
35-
pluginDir.mkdirs()
36-
URI("https://github.com/ModernSpout/Spout-Paper-server/releases/download/1.21.11-R0.1/spout-paperclip-1.21.11-R0.1.jar").toURL().openStream().use {
37-
Files.copy(it, serverDir.resolve("server.jar").toPath())
38-
}
36+
group = "spout"; notCompatibleWithConfigurationCache(""); doFirst {
37+
serverDir.mkdirs(); pluginDir.mkdirs()
38+
URI(spoutJarURL).toURL().openStream().use {
39+
Files.copy(it, serverDir.resolve("server.jar").toPath(), StandardCopyOption.REPLACE_EXISTING)
3940
}
4041
}
41-
42+
}
4243
register("runServer", JavaExec::class) {
43-
notCompatibleWithConfigurationCache("Uses non-serializable Gradle script references")
44-
group = "spout"
44+
group = "spout"; notCompatibleWithConfigurationCache("")
4545
dependsOn("shadowJar")
46-
if (!serverDir.resolve("server.jar").exists()) {
47-
dependsOn("downloadServer")
48-
}
46+
if (!serverDir.resolve("server.jar").exists()) dependsOn("downloadServer")
4947
doFirst {
50-
pluginDir.resolve("ChinesePaperLamps.jar").delete()
48+
pluginDir.resolve("${project.name}.jar").delete()
5149
Files.copy(
52-
layout.buildDirectory.file("libs/ChinesePaperLamps-plugin-${version}.jar").get().asFile.toPath(),
53-
pluginDir.resolve("ChinesePaperLamps.jar").toPath()
50+
layout.buildDirectory.file("libs/${project.name}-${version}.jar").get().asFile.toPath(),
51+
pluginDir.resolve("${project.name}.jar").toPath()
5452
)
5553
}
5654
classpath = files(serverDir.resolve("server.jar"))
57-
workingDir = serverDir
58-
jvmArgs = listOf("-Dcom.mojang.eula.agree=true")
59-
args = listOf("--nogui")
60-
standardInput = System.`in`
55+
workingDir = serverDir; jvmArgs = listOf("-Dcom.mojang.eula.agree=true", "-Dspout.server.paper.enabled=true")
56+
args = listOf("--nogui"); standardInput = System.`in`
6157
}
6258

6359
processResources {

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
group=spout.plugin.chinesepaperlamps
2-
version=1.0-SNAPSHOT
2+
version=1.0
33
apiVersion=1.21.11
4+
spoutVersion=1.21.11-R0.6
45
description=Adds Chinese paper lamps
56
org.gradle.configuration-cache=true
67
org.gradle.parallel=true

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = "ChinesePaperLamps-plugin"
1+
rootProject.name = "ChinesePaperLamps"

0 commit comments

Comments
 (0)