Fix ore publishing

This commit is contained in:
Lukas Rieger (Blue) 2024-09-15 22:08:33 +02:00
parent 407bbf4018
commit dd2b0ce386
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
2 changed files with 7 additions and 2 deletions

View File

@ -9,10 +9,9 @@ oreDeployment {
projectId = "bluemap" projectId = "bluemap"
createForumPost = true createForumPost = true
versionBody = project.releaseNotes() versionBody = project.releaseNotes()
publishArtifacts.setFrom(tasks.getByName("release").outputs.files.singleFile)
} }
} }
tasks.publishToOre { tasks.getByName("publishDefaultPublicationToOre") {
dependsOn(tasks.getByName("release")) dependsOn(tasks.getByName("release"))
} }

View File

@ -71,6 +71,12 @@ tasks.shadowJar {
} }
oreDeployment {
defaultPublication {
publishArtifacts.setFrom( tasks.getByName("release").outputs.files.singleFile )
}
}
modrinth { modrinth {
gameVersions.addAll(supportedMinecraftVersions) gameVersions.addAll(supportedMinecraftVersions)
} }