diff options
author | bombcar <github@bombcar.com> | 2022-02-08 14:28:43 -0600 |
---|---|---|
committer | Jason Mitchell <mitchej+github@gmail.com> | 2022-02-08 12:32:09 -0800 |
commit | 1b20fc9bb48abaeae8286efdf25dd1402dbe9c94 (patch) | |
tree | 24b898485647380a7af73d80c0646cddc103ec49 | |
parent | b5c956c38335e6fbb3519b88a894975acf0bf419 (diff) | |
download | GT5-Unofficial-1b20fc9bb48abaeae8286efdf25dd1402dbe9c94.tar.gz GT5-Unofficial-1b20fc9bb48abaeae8286efdf25dd1402dbe9c94.tar.bz2 GT5-Unofficial-1b20fc9bb48abaeae8286efdf25dd1402dbe9c94.zip |
update deps and buildscript
-rw-r--r-- | build.gradle | 29 | ||||
-rw-r--r-- | dependencies.gradle | 7 |
2 files changed, 18 insertions, 18 deletions
diff --git a/build.gradle b/build.gradle index 4f54c87f65..42cc549283 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,10 @@ -//version: 1643844119 +//version: 1644349045 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. Please check https://github.com/GTNewHorizons/ExampleMod1.7.10/blob/main/build.gradle for updates. - */ +*/ import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation @@ -40,12 +40,12 @@ plugins { id 'idea' id 'eclipse' id 'scala' + id 'maven-publish' id('org.jetbrains.kotlin.jvm') version ('1.6.10') apply false id('org.ajoberstar.grgit') version('4.1.1') id('com.github.johnrengelman.shadow') version('4.0.4') id('com.palantir.git-version') version('0.13.0') apply false id('de.undercouch.download') version('5.0.1') - id('maven-publish') } if (project.file('.git/HEAD').isFile()) { @@ -411,7 +411,7 @@ processResources from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' - // replace version and mcversion + // replace modVersion and minecraftVersion expand "minecraftVersion": project.minecraft.version, "modVersion": modVersion, "modId": modId, @@ -422,7 +422,7 @@ processResources from refMap } - // copy everything else, thats not the mcmod.info + // copy everything else that's not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } @@ -539,8 +539,6 @@ tasks.withType(GenerateModuleMetadata) { enabled = false } - -// publishing publishing { publications { maven(MavenPublication) { @@ -561,13 +559,16 @@ publishing { // Using the identified version, not project.version as it has the prepended 1.7.10 version = System.getenv("RELEASE_VERSION") ?: identifiedVersion - // Remove all non GTNH deps here. - // Original intention was to remove an invalid forgeBin being generated without a groupId (mandatory), but - // it also removes all of the MC deps + // manually fix the groupId for forgeSrc pom.withXml { + def badPomGroup = ['net.minecraft', 'com.google.code.findbugs', 'org.ow2.asm', 'com.typesafe.akka', 'com.typesafe', 'org.scala-lang', + 'org.scala-lang.plugins', 'net.sf.jopt-simple', 'lzma', 'com.mojang', 'org.apache.commons', 'org.apache.httpcomponents', + 'commons-logging', 'java3d', 'net.sf.trove4j', 'com.ibm.icu', 'com.paulscode', 'io.netty', 'com.google.guava', + 'commons-io', 'commons-codec', 'net.java.jinput', 'net.java.jutils', 'com.google.code.gson', 'org.apache.logging.log4j', + 'org.lwjgl.lwjgl', 'tv.twitch', ''] Node pomNode = asNode() pomNode.dependencies.'*'.findAll() { - it.groupId.text() != 'com.github.GTNewHorizons' + badPomGroup.contains(it.groupId.text()) }.each() { it.parent().remove(it) } @@ -673,7 +674,7 @@ def deobf(String sourceURL) { } } -// The method above is to be prefered. Use this method if the filename is not at the end of the URL. +// The method above is to be preferred. Use this method if the filename is not at the end of the URL. def deobf(String sourceURL, String fileName) { String cacheDir = System.getProperty("user.home") + "/.gradle/caches/" String bon2Dir = cacheDir + "forge_gradle/deobf" @@ -685,14 +686,14 @@ def deobf(String sourceURL, String fileName) { return files(deobfFile) } - download { + download.run { src 'https://github.com/GTNewHorizons/BON2/releases/download/2.5.0/BON2-2.5.0.CUSTOM-all.jar' dest bon2File quiet true overwrite false } - download { + download.run { src sourceURL dest obfFile quiet true diff --git a/dependencies.gradle b/dependencies.gradle index 9c0c05fa2e..b54c2d0df7 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -5,8 +5,7 @@ dependencies { compile("com.github.GTNewHorizons:StructureLib:1.0.15:dev") - compile("com.github.GTNewHorizons:NotEnoughItems:2.2.5-GTNH:dev") - compile("com.github.GTNewHorizons:CodeChickenCore:1.1.3:dev") + compile("com.github.GTNewHorizons:NotEnoughItems:2.2.6-GTNH:dev") compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.3:dev") compile("com.github.GTNewHorizons:waila:1.5.18:dev") @@ -21,7 +20,7 @@ dependencies { compileOnly("com.github.GTNewHorizons:Railcraft:9.13.6:dev") { transitive = false } - compileOnly("com.github.GTNewHorizons:Galacticraft:3.0.38-GTNH:dev") { + compileOnly("com.github.GTNewHorizons:Galacticraft:3.0.39-GTNH:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:AppleCore:3.1.9:dev") { @@ -42,7 +41,7 @@ dependencies { compileOnly("com.github.GTNewHorizons:EnderIO:2.3.1.29:dev") { transitive = false } - compileOnly("com.github.GTNewHorizons:BuildCraft:7.1.26:dev") { + compileOnly("com.github.GTNewHorizons:BuildCraft:7.1.27:dev") { transitive = false } compileOnly("commons-io:commons-io:2.4") { |