Skip to content

Commit

Permalink
Merge pull request #9 from xenit-eu/fix-sonatype-release
Browse files Browse the repository at this point in the history
Fix sonatype release
  • Loading branch information
vierbergenlars authored Oct 4, 2022
2 parents 2c9ed03 + 4a72f06 commit 19f9497
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## 0.4.0 - 2022-10-04

Fixed:
* [#9] - Fixed release to Maven Central via Sonatype

Changed:
* [#8] - Moved packages to `com.contentgrid.opa`
* [#7] - Moved maven group coordinates to `com.contentgrid.opa-java-client`
Expand All @@ -17,6 +20,8 @@ Housekeeping:

[#6]: https://github.com/xenit-eu/opa-java-client/pull/6
[#7]: https://github.com/xenit-eu/opa-java-client/pull/7
[#8]: https://github.com/xenit-eu/opa-java-client/pull/8
[#9]: https://github.com/xenit-eu/opa-java-client/pull/9

## 0.3.0 - 2021-12-09

Expand Down
24 changes: 12 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ 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 @@ -22,16 +34,4 @@ 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')
}
}
}

0 comments on commit 19f9497

Please sign in to comment.