Skip to content

Commit 05ce09e

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Move repositories to publishing
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 7544d7d commit 05ce09e

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

build.gradle

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ dependencies {
4545
testImplementation 'uk.org.webcompere:system-stubs-jupiter:2.0.2'
4646
}
4747

48-
repositories {
49-
repositories {
50-
maven {
51-
// change URLs to point to your repos, e.g. http://my.org/repo
52-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
53-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
54-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
55-
credentials{
56-
username = System.getenv("MAVEN_USERNAME")
57-
password = System.getenv("MAVEN_PASSWORD")
58-
}
59-
}
60-
}
61-
}
62-
6348
publishing {
6449
publications.register("jar", MavenPublication) {
6550
from components.java
@@ -97,6 +82,17 @@ publishing {
9782
}
9883
}
9984
}
85+
repositories {
86+
maven {
87+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
88+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
89+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
90+
credentials {
91+
username = System.getenv("MAVEN_USERNAME")
92+
password = System.getenv("MAVEN_PASSWORD")
93+
}
94+
}
95+
}
10096
}
10197

10298
test {

0 commit comments

Comments
 (0)