Skip to content

Commit

Permalink
fix: why is publishing to maven central so difficult?
Browse files Browse the repository at this point in the history
  • Loading branch information
LooFifteen committed Aug 30, 2024
1 parent c82af11 commit 98d0009
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
5 changes: 0 additions & 5 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ publishing {
url = 'https://repo.hypera.dev/snapshots/'
credentials(PasswordCredentials)
}
maven {
name = 'sonatype'
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
credentials(PasswordCredentials)
}
}

publications {
Expand Down
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.licenser) apply false
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}

import org.gradle.api.tasks.testing.logging.TestExceptionFormat
Expand Down Expand Up @@ -85,3 +86,14 @@ subprojects {
maven { url 'https://libraries.minecraft.net/' }
}
}

nexusPublishing {
useStaging.set(true)

repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
5 changes: 0 additions & 5 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ publishing {
url = 'https://repo.hypera.dev/snapshots/'
credentials(PasswordCredentials)
}
maven {
name = 'sonatype'
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
credentials(PasswordCredentials)
}
}

publications {
Expand Down
5 changes: 0 additions & 5 deletions minestom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ publishing {
url = 'https://repo.hypera.dev/snapshots/'
credentials(PasswordCredentials)
}
maven {
name = 'sonatype'
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
credentials(PasswordCredentials)
}
}

publications {
Expand Down

0 comments on commit 98d0009

Please sign in to comment.