Skip to content

Commit

Permalink
feat: new config system!
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Jul 16, 2024
1 parent 841275d commit 7c009c7
Show file tree
Hide file tree
Showing 60 changed files with 1,318 additions and 1,586 deletions.
30 changes: 6 additions & 24 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("io.papermc.paperweight.patcher") version "1.5.11"
id("org.leavesmc.leavesweight.patcher") version "1.0.0-SNAPSHOT"
}

val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"

repositories {
mavenCentral()
maven(paperMavenPublicUrl) {
content { onlyForConfigurations(configurations.paperclip.name) }
}
maven {
name = "leavesmcRepositorySnapshots"
url = uri("https://repo.leavesmc.top/snapshots")
}
maven("https://repo.leavesmc.top/snapshots")
maven("https://repo.leavesmc.org/releases")
}

dependencies {
remapper("net.fabricmc:tiny-remapper:0.8.6:fat")
decompiler("org.quiltmc:quiltflower:1.9.0")
paperclip("top.leavesmc:leavesclip:1.0-SNAPSHOT")
leavesclip("org.leavesmc:leavesclip:2.0.1")
}

subprojects {
Expand All @@ -30,13 +24,13 @@ subprojects {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
}

tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
options.release.set(21)
}

tasks.withType<Javadoc> {
Expand All @@ -63,7 +57,6 @@ subprojects {

tasks.generateDevelopmentBundle {
apiCoordinates.set("org.leavesmc.lumina:lumina-api")
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
libraryRepositories.set(
listOf(
"https://repo.maven.apache.org/maven2/",
Expand Down Expand Up @@ -105,7 +98,6 @@ paperweight {

tasks.generateDevelopmentBundle {
apiCoordinates.set("org.leavesmc.lumina:lumina-api")
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
libraryRepositories.addAll(
"https://repo.maven.apache.org/maven2/",
paperMavenPublicUrl,
Expand Down Expand Up @@ -141,13 +133,3 @@ publishing {
}
}
}

val createReobfLeavesclipJar = tasks.register("createReobfLeavesclipJar") {
group = "paperweight"
dependsOn("createReobfPaperclipJar")
doLast {
file("build/libs/lumina-paperclip-${project.version}-reobf.jar").renameTo(
file("build/libs/lumina-leavesclip-${project.version}-reobf.jar")
)
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
338 changes: 338 additions & 0 deletions patches/server/0001-Rebrand-to-Lumina-and-build-changes.patch

Large diffs are not rendered by default.

136 changes: 0 additions & 136 deletions patches/server/0001-Rebrand-to-Lumina.patch

This file was deleted.

Loading

0 comments on commit 7c009c7

Please sign in to comment.