Skip to content

Commit

Permalink
build: cleaned up a bit of build.gradle duplication [ciskip]
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Jun 19, 2024
1 parent eff6f34 commit ccd7fe8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 65 deletions.
22 changes: 0 additions & 22 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,4 @@ publishing {
from components.java
}
}

repositories {
if (ftbPublishing.ftbToken) {
maven {
url ftbPublishing.ftbURL
credentials {
username = ftbPublishing.ftbUser
password = ftbPublishing.ftbToken
}
}
}

if (ftbPublishing.sapsToken) {
maven {
url ftbPublishing.sapsURL
credentials {
username = ftbPublishing.sapsUser
password = ftbPublishing.sapsToken
}
}
}
}
}
43 changes: 0 additions & 43 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,47 +102,4 @@ publishing {
from components.java
}
}

repositories {
if (ftbPublishing.ftbToken) {
maven {
url ftbPublishing.ftbURL
credentials {
username = ftbPublishing.ftbUser
password = ftbPublishing.ftbToken
}
}
}

if (ftbPublishing.sapsToken) {
maven {
url ftbPublishing.sapsURL
credentials {
username = ftbPublishing.sapsUser
password = ftbPublishing.sapsToken
}
}
}
}
}

if (ENV.CURSEFORGE_KEY) {
curseforge {
apiKey = ENV.CURSEFORGE_KEY
project {
id = project.curseforge_id
releaseType = ftbPublishing.relType
addGameVersion project.minecraft_version
addGameVersion "Forge"
mainArtifact(remapJar.archiveFile)
relations {
requiredDependency 'ftb-library-forge'
optionalDependency 'ftb-ranks-forge'
}
changelog = ENV.CHANGELOG // expected to exist if ENV.CURSEFORGE_KEY does
changelogType = 'markdown'
}
}
}

rootProject.tasks.getByName("curseforgePublish").dependsOn tasks.getByName("curseforge")

0 comments on commit ccd7fe8

Please sign in to comment.