Test push again

This commit is contained in:
Telesphoreo 2022-02-25 17:25:32 -06:00
parent c9e6e3d45d
commit ed3aaa5692

View File

@ -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 { 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(publishPlexSnapshotsPublicationToMaven2Repository)
} else {
dependsOn(publishPlexReleasesPublicationToMavenRepository)
}
} }
} }
@ -124,7 +108,3 @@ tasks {
task publishRelease { task publishRelease {
dependsOn(publishPlexReleasesPublicationToMavenRepository) dependsOn(publishPlexReleasesPublicationToMavenRepository)
} }
task publishSnapshot {
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
}