Skip to content

Commit

Permalink
Merge pull request #10 from xenit-eu/fix-nexus-publish
Browse files Browse the repository at this point in the history
Use xenit-conventions-signing plugin
  • Loading branch information
tgeens authored Oct 4, 2022
2 parents cddcbff + a708ea4 commit de08fe4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ reckon {
snapshotFromProp()
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))

username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}

allprojects {
pluginManager.withPlugin('maven-publish') {
apply from: "${rootDir}/gradle/publish.gradle"
Expand All @@ -34,4 +22,16 @@ allprojects {
mavenCentral()
}
}
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))

username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
2 changes: 1 addition & 1 deletion gradle/publish.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'maven-publish'
apply plugin: 'eu.xenit.enterprise-conventions.ext.signing'
apply plugin: 'signing'

publishing {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "eu.xenit.enterprise-conventions.oss" version "0.2.0"
id "eu.xenit.enterprise-conventions.ext.signing" version "0.2.0" apply false
}

rootProject.name = 'opa-java-client'
Expand Down

0 comments on commit de08fe4

Please sign in to comment.