Skip to content

Commit

Permalink
release changes
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassimo committed Jul 4, 2023
1 parent 71d85e3 commit 7503d89
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
36 changes: 16 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -180,33 +180,29 @@ tasks.withType(CurseUploadTask::class.java) {
}

curseforge {
if (!enablePublishing()) {
project.logger.log(LogLevel.WARN, "API Key, file type, or project ID for CurseForge not detected; uploading " +
"will be disabled.")
return@curseforge
}

apiKey = property("curseApiKey")
if (project.hasProperty("curseApiKey") && project.hasProperty("curseFileType")) {
apiKey = property("curseApiKey")

project {
id = property("projectId")
project {
id = property("curseProjectId")

addGameVersion("1.16.4")
addGameVersion(mcVersion)
addGameVersion(mcVersion)

changelog = readChangelog() ?: "No changelog provided."
changelogType = "markdown"
releaseType = property("curseFileType")
changelog = file("build/changelog.txt")
changelogType = "markdown"
releaseType = property("curseFileType")

addArtifact(tasks.findByName("sourcesJar"))
addArtifact(tasks.findByName("sourcesJar"))

mainArtifact(tasks.findByName("jar")) {
relations {
requiredDependency("dynamictrees")
requiredDependency("oh-the-biomes-youll-go")
optionalDependency("dynamictreesplus")
mainArtifact(tasks.findByName("jar")) {
relations {
requiredDependency("dynamictrees")
requiredDependency("pams-harvestcraft-2-trees")
}
}
}
} else {
project.logger.log(LogLevel.WARN, "API Key and file type for CurseForge not detected; uploading will be disabled.")
}
}

Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ dynamicTreesPlusVersion=1.0.4
ccVersion=1.101.2
suggestionProviderFixVersion=1.0.0

curseProjectId=839090
curseFileType=release

org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

0 comments on commit 7503d89

Please sign in to comment.