Skip to content

Commit

Permalink
Updated Upstream (Mirai)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Oct 17, 2022
1 parent 73307d7 commit 1820a40
Show file tree
Hide file tree
Showing 9 changed files with 216 additions and 173 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ Leaf-API
Leaf-MojangAPI
Leaf-Server
*.jar
/patches/todo-api/
/patches/todo-server/
36 changes: 15 additions & 21 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,70 +1,64 @@
import io.papermc.paperweight.util.constants.*

plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2" apply false
id("io.papermc.paperweight.patcher") version "1.3.8"
id("io.papermc.paperweight.patcher") version "1.3.9-SNAPSHOT"
}

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

repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/") {
content {
onlyForConfigurations(PAPERCLIP_CONFIG)
}
maven(paperMavenPublicUrl) {
content { onlyForConfigurations(configurations.paperclip.name) }
}
}

dependencies {
remapper("net.fabricmc:tiny-remapper:0.8.2:fat")
decompiler("net.minecraftforge:forgeflower:1.5.605.7")
paperclip("io.papermc:paperclip:3.0.2")
remapper("net.fabricmc:tiny-remapper:0.8.6:fat")
decompiler("org.quiltmc:quiltflower:1.8.1")
paperclip("io.papermc:paperclip:3.0.3-SNAPSHOT")
}

subprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")

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

subprojects {
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}

tasks.withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}

tasks.withType<ProcessResources> {
filteringCharset = Charsets.UTF_8.name()
}

repositories {
mavenCentral()
maven(paperMavenPublicUrl)
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://ci.emc.gs/nexus/content/groups/aikar/")
maven("https://repo.aikar.co/content/groups/aikar")
maven("https://repo.md-5.net/content/repositories/releases/")
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
maven("https://jitpack.io")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.codemc.io/repository/maven-public/")
}

}

paperweight {
serverProject.set(project(":leaf-server"))

remapRepo.set("https://maven.fabricmc.net/")
decompileRepo.set("https://files.minecraftforge.net/maven/")
decompileRepo.set("https://maven.quiltmc.org/")

useStandardUpstream("mirai") {
url.set(github("etil2jz", "Mirai"))
Expand All @@ -82,4 +76,4 @@ paperweight {
serverOutputDir.set(layout.projectDirectory.dir("Leaf-Server"))
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
group = org.dreeam.leaf
version = 1.19.2-R0.1-SNAPSHOT

MiraiCommit = 4ee7d3b369b92ab46df8ade9359cceb3b3404c9e
MiraiCommit = 041d65e8e66737e733bafb3874cc0ac99713f7e8

org.gradle.caching = true
org.gradle.parallel = true
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 1820a40

Please sign in to comment.