Skip to content

Commit

Permalink
Fix publishing to local sonatype (#6843)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomanderson authored Mar 26, 2024
1 parent 557e309 commit e378ffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ nexusPublishing {
if (forceLocal && !isCI) {
local {
// For testing use with https://hub.docker.com/r/sonatype/nexus
// docker run --rm -d -p 8081:8081 --name nexus sonatype/nexus
// docker run --rm -d -p 8081:8081 --name nexus sonatype/nexus:oss
// ./gradlew publishToLocal
// Doesn't work for testing releases though... (due to staging)
nexusUrl = uri("http://localhost:8081/nexus/content/repositories/releases/")
snapshotRepositoryUrl = uri("http://localhost:8081/nexus/content/repositories/snapshots/")
username = "admin"
password = "admin123"
allowInsecureProtocol = true
}
} else {
sonatype {
Expand Down

0 comments on commit e378ffb

Please sign in to comment.