diff --git a/build.gradle b/build.gradle index 58e53ac..6ef2393 100644 --- a/build.gradle +++ b/build.gradle @@ -85,18 +85,6 @@ publishing { } } } - plexSnapshots(MavenPublication) { - from(components.java) - repositories { - maven { - url("https://nexus.telesphoreo.me/repository/plex-snapshots/") - credentials { - username = System.getenv("plex_repo_user") - password = System.getenv("plex_repo_pass") - } - } - } - } } } @@ -108,11 +96,7 @@ tasks { build { dependsOn(shadowJar) if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { - if (getVersion().toString().toLowerCase().endsWith("-snapshot")) { - dependsOn(publishPlexSnapshotsPublicationToMaven2Repository) - } else { - dependsOn(publishPlexReleasesPublicationToMavenRepository) - } + dependsOn(publishPlexReleasesPublicationToMavenRepository) } } @@ -123,8 +107,4 @@ tasks { task publishRelease { dependsOn(publishPlexReleasesPublicationToMavenRepository) -} - -task publishSnapshot { - dependsOn(publishPlexSnapshotsPublicationToMaven2Repository) } \ No newline at end of file