do this instead

This commit is contained in:
Telesphoreo 2022-02-25 17:55:02 -06:00
parent ed3aaa5692
commit 8b4a5d64a0

View File

@ -96,9 +96,11 @@ tasks {
build { build {
dependsOn(shadowJar) dependsOn(shadowJar)
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
if (!getVersion().toString().toLowerCase().endsWith("-snapshot")) {
dependsOn(publishPlexReleasesPublicationToMavenRepository) dependsOn(publishPlexReleasesPublicationToMavenRepository)
} }
} }
}
javadoc { javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE options.memberLevel = JavadocMemberLevel.PRIVATE