Skip to content

Commit

Permalink
FIX: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hosuaby committed Aug 7, 2024
1 parent e25d36f commit fbf536e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
14 changes: 0 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ allprojects {
GSON_VERSION = System.getProperty('GSON_VERSION') ?: '2.11.0'
SNAKE_YAML_VERSION = System.getProperty('SNAKE_YAML_VERSION') ?: '2.2'

SONATYPE_USERNAME = System.getenv('SONATYPE_USERNAME')
SONATYPE_PASSWORD = System.getenv('SONATYPE_PASSWORD')
SIGNING_KEY = System.getenv('SIGNING_KEY')
}
}
Expand Down Expand Up @@ -137,18 +135,6 @@ configure(publishedProjects) {
from javadoc.destinationDir
}

publishing {
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username SONATYPE_USERNAME
password SONATYPE_PASSWORD
}
}
}
}

signing {
required { !gradle.taskGraph.hasTask('publishToMavenLocal') }
useInMemoryPgpKeys(SIGNING_KEY, '')
Expand Down
9 changes: 9 additions & 0 deletions inject-resources-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ publishing {
}
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username System.getenv('SONATYPE_USERNAME')
password System.getenv('SONATYPE_PASSWORD')
}
}
}
}

dependencies {
Expand Down
9 changes: 9 additions & 0 deletions inject-resources-junit-jupiter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ publishing {
}
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username System.getenv('SONATYPE_USERNAME')
password System.getenv('SONATYPE_PASSWORD')
}
}
}
}

dependencies {
Expand Down
9 changes: 9 additions & 0 deletions inject-resources-junit-vintage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ publishing {
}
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username System.getenv('SONATYPE_USERNAME')
password System.getenv('SONATYPE_PASSWORD')
}
}
}
}

dependencies {
Expand Down
9 changes: 9 additions & 0 deletions inject-resources-spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ publishing {
}
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username System.getenv('SONATYPE_USERNAME')
password System.getenv('SONATYPE_PASSWORD')
}
}
}
}

dependencies {
Expand Down

0 comments on commit fbf536e

Please sign in to comment.