Enable release only deploys to GitHub packages
@@ -149,17 +149,17 @@ tasks {
// archives(shadowJar)
// }
-// withType<PublishToMavenRepository>().configureEach {
-// onlyIf {
-// (repository == publishing.repositories["GitHubPackages"] &&
-// !publication.version.endsWith("-SNAPSHOT")) ||
-// (!spongeSnapshotRepo.isNullOrBlank()
-// && !spongeReleaseRepo.isNullOrBlank()
-// && repository == publishing.repositories["spongeRepo"]
-// && publication == publishing.publications["sponge"])
-//
-// }
-// }
+ withType<PublishToMavenRepository>().configureEach {
+ onlyIf {
+ (repository == publishing.repositories["GitHubPackages"] &&
+ !publication.version.endsWith("-SNAPSHOT")) ||
+ (!spongeSnapshotRepo.isNullOrBlank()
+ && !spongeReleaseRepo.isNullOrBlank()
+ && repository == publishing.repositories["spongeRepo"]
+ && publication == publishing.publications["sponge"])
+
+ }
+ }
}
val javadocJar by tasks.registering(Jar::class) {
group = "build"
