-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.18/dev' into 1.18/main
- Loading branch information
Showing
11 changed files
with
159 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,112 @@ | ||
plugins { | ||
id "architectury-plugin" version "3.4-SNAPSHOT" | ||
id "dev.architectury.loom" version "0.11.0-SNAPSHOT" apply false | ||
id 'base' | ||
id 'architectury-plugin' version '3.4-SNAPSHOT' | ||
id "dev.architectury.loom" version "0.12.0-SNAPSHOT" apply false | ||
id "io.github.juuxel.loom-quiltflower" version "1.7.2" apply false | ||
id "com.github.johnrengelman.shadow" version "7.0.0" apply false | ||
id "com.matthewprenger.cursegradle" version "1.4.0" apply false | ||
} | ||
|
||
architectury { | ||
minecraft = rootProject.minecraft_version | ||
minecraft = project.minecraft_version | ||
} | ||
|
||
allprojects { | ||
ext.ENV = System.getenv() | ||
|
||
repositories { | ||
maven { | ||
url "https://maven.saps.dev/minecraft" | ||
content { | ||
includeGroup "dev.latvian.mods" | ||
includeGroup "dev.ftb.mods" | ||
} | ||
} | ||
} | ||
} | ||
|
||
version = "${mod_version}-build.${ENV.GITHUB_RUN_NUMBER ?: 9999}" | ||
group = project.maven_group | ||
base.archivesBaseName = project.archives_base_name | ||
|
||
subprojects { | ||
apply plugin: "java" | ||
apply plugin: "dev.architectury.loom" | ||
apply plugin: 'architectury-plugin' | ||
apply plugin: "io.github.juuxel.loom-quiltflower" | ||
apply plugin: "maven-publish" | ||
apply from: "https://files.latmod.com/public/markdown-git-changelog.gradle" | ||
|
||
version = rootProject.version | ||
group = rootProject.group | ||
base.archivesBaseName = rootProject.base.archivesBaseName | ||
|
||
loom { | ||
silentMojangMappingsLicense() | ||
} | ||
|
||
compileJava { | ||
options.encoding = "UTF-8" | ||
options.release.set(17) | ||
} | ||
|
||
java { | ||
sourceCompatibility = targetCompatibility = '17' | ||
withSourcesJar() | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}" | ||
mappings loom.layered() { | ||
officialMojangMappings() | ||
// parchment("org.parchmentmc.data:parchment-1.17.1:2021.10.10") | ||
} | ||
} | ||
} | ||
|
||
allprojects { | ||
apply plugin: "java" | ||
apply plugin: "architectury-plugin" | ||
apply plugin: "maven-publish" | ||
apply from: "https://files.latmod.com/public/markdown-git-changelog.gradle" | ||
|
||
def ENV = System.getenv() | ||
version = "${mod_version}-build.${ENV.GITHUB_RUN_NUMBER ?: 9999}" | ||
group = project.mod_package | ||
archivesBaseName = project.mod_name | ||
|
||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '17' | ||
subprojects { | ||
if (project.path != ':common') { | ||
apply plugin: "com.github.johnrengelman.shadow" | ||
apply plugin: "com.matthewprenger.cursegradle" | ||
|
||
compileJava { | ||
options.encoding = "UTF-8" | ||
} | ||
configurations { | ||
bundle { | ||
canBeResolved(true) | ||
canBeConsumed(false) | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
url "https://maven.architectury.dev/" | ||
jar { | ||
archiveClassifier.set "dev" | ||
} | ||
|
||
maven { | ||
url "https://maven.saps.dev/minecraft" | ||
content { | ||
includeGroup "dev.ftb.mods" | ||
includeGroup "dev.latvian.mods" | ||
} | ||
shadowJar { | ||
archiveClassifier.set "dev-shadow" | ||
configurations = [ | ||
project.configurations.bundle | ||
] | ||
} | ||
|
||
maven { | ||
url "https://www.cursemaven.com" | ||
content { | ||
includeGroup "curse.maven" | ||
} | ||
remapJar { | ||
dependsOn shadowJar | ||
inputFile.set shadowJar.archiveFile | ||
archiveBaseName.set "${rootProject.archives_base_name}-${project.name}" | ||
archiveClassifier.set null | ||
} | ||
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
task collectJars(type: Copy) { | ||
subprojects { | ||
if (project.path != ":common") { | ||
def remapJar = project.tasks.named('remapJar') | ||
dependsOn remapJar | ||
from remapJar | ||
} | ||
} | ||
|
||
into(buildDir.toPath().resolve("libs")) | ||
} | ||
|
||
task curseforgePublish | ||
assemble { | ||
dependsOn(collectJars) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.