diff --git a/build.gradle b/build.gradle index f2cf06c..f3a7fa2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1699231026 +//version: 1699290261 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. @@ -1172,32 +1172,29 @@ tasks.named("ideVirtualMainClasses").configure { // workaround variable hiding in pom processing def projectConfigs = project.configurations -if (System.getenv("MAVEN_USER") != null) { - publishing { - publications { - create("maven", MavenPublication) { - from components.java +publishing { + publications { + create("maven", MavenPublication) { + from components.java - if (apiPackage) { - artifact apiJar - } - - groupId = System.getenv("ARTIFACT_GROUP_ID") ?: project.group - artifactId = System.getenv("ARTIFACT_ID") ?: project.name - // Using the identified version, not project.version as it has the prepended 1.7.10 - version = System.getenv("RELEASE_VERSION") ?: identifiedVersion + if (apiPackage) { + artifact apiJar } - } - repositories { - if (usesMavenPublishing.toBoolean()) { - maven { - url = mavenPublishUrl - allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven - credentials { - username = System.getenv("MAVEN_USER") ?: "NONE" - password = System.getenv("MAVEN_PASSWORD") ?: "NONE" - } + groupId = System.getenv("ARTIFACT_GROUP_ID") ?: project.group + artifactId = System.getenv("ARTIFACT_ID") ?: project.name + // Using the identified version, not project.version as it has the prepended 1.7.10 + version = System.getenv("RELEASE_VERSION") ?: identifiedVersion + } + } + repositories { + if (usesMavenPublishing.toBoolean() && System.getenv("MAVEN_USER") != null) { + maven { + url = mavenPublishUrl + allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven + credentials { + username = System.getenv("MAVEN_USER") ?: "NONE" + password = System.getenv("MAVEN_PASSWORD") ?: "NONE" } } } diff --git a/dependencies.gradle b/dependencies.gradle index d78ba0f..631e192 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -2,5 +2,5 @@ dependencies { api("com.github.GTNewHorizons:CodeChickenLib:1.1.8:dev") - devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.3.57-GTNH:dev") + devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.4.9-GTNH:dev") }