File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ subprojects {
2828 publishing {
2929 repositories {
3030 maven {
31+ credentials(org.gradle.api.credentials.PasswordCredentials . class)
3132 name = " StaticStudios"
32- url = " https://repo.staticstudios.net/private/"
33- credentials(org.gradle.api.credentials.PasswordCredentials )
33+ var base = " https://repo.staticstudios.net"
34+ var releasesRepoUrl = " $base /releases/"
35+ var snapshotsRepoUrl = " $base /snapshots/"
36+ setUrl((version. toString(). endsWith(" SNAPSHOT" )) ? snapshotsRepoUrl : releasesRepoUrl)
3437 }
3538 }
3639 }
Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ tasks.named("publish") {
4444
4545
4646publishing {
47- repositories {
48- maven {
49- credentials(org.gradle.api.credentials.PasswordCredentials . class)
50- name = " StaticStudios"
51- setUrl(" https://repo.staticstudios.net/private/" )
52- }
53- }
5447 publications {
5548 maven(MavenPublication ) {
5649 artifactId = ' static-data-processor'
You can’t perform that action at this time.
0 commit comments