Skip to content

Commit 6bc0484

Browse files
[ACC-2169] Set up publishing with conventions plugin
1 parent 0605970 commit 6bc0484

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
env:
2323
SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
2424
SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
25-
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
26-
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
25+
ORG_GRADLE_PROJECT_mavenCentralPublishUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
26+
ORG_GRADLE_PROJECT_mavenCentralPublishPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
2727
run: ./gradlew publish
2828
- name: Upload reports
2929
if: success() || failure()

gradle/publish.gradle

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,6 @@ publishing {
3131
}
3232
}
3333

34-
repositories {
35-
if ("${project.version}".endsWith('-SNAPSHOT')) {
36-
sonatypeSnapshots {
37-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
38-
credentials {
39-
username = project.findProperty('sonatype_username')
40-
password = project.findProperty('sonatype_password')
41-
}
42-
}
43-
} else {
44-
sonatypeMavenCentral {
45-
url = "https://s01.oss.sonatype.org/service/local/"
46-
credentials {
47-
username = project.findProperty('sonatype_username')
48-
password = project.findProperty('sonatype_password')
49-
}
50-
}
51-
}
52-
}
5334
}
5435

5536
pluginManager.withPlugin('java') {

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'eu.xenit.enterprise-conventions.oss' version '0.5.2'
2+
id 'eu.xenit.enterprise-conventions.oss' version '0.6.1'
33
id 'org.ajoberstar.reckon.settings' version '0.19.2'
44
}
55

0 commit comments

Comments
 (0)