Skip to content

Commit b0216d4

Browse files
committed
#8 - Fixed the maven release procedure.
1 parent 629eab4 commit b0216d4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ subprojects {
8080
}
8181
repositories {
8282
maven {
83-
// change URLs to point to your repos, e.g. http://my.org/repo
84-
def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
85-
def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots')
86-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
83+
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
84+
allowInsecureProtocol = true
85+
credentials {
86+
username ossrhUsername
87+
password ossrhPassword
88+
}
8789
}
8890
}
8991
}
@@ -110,4 +112,4 @@ subprojects {
110112
}
111113

112114
apply plugin: 'com.github.ben-manes.versions'
113-
}
115+
}

0 commit comments

Comments
 (0)