Skip to content

Commit

Permalink
update bs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed Nov 8, 2023
1 parent c572c7d commit 5d93361
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit 5d93361

Please sign in to comment.