Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -o errexit

./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info

curl -X POST -H "Authorization: Bearer $(printf \"${ORG_GRADLE_PROJECT_mavenCentralUsername}:${ORG_GRADLE_PROJECT_mavenCentralPassword}\" | base64)" https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/ee.bitweb
3 changes: 2 additions & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish package to the Maven Central Repository
on:
release:
types: [created]
workflow_dispatch: # Allow manual trigger as well (for testing only)

jobs:
publish:
Expand All @@ -23,4 +24,4 @@ jobs:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY_PASSWORD }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info
run: ./.github/scripts/deploy.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Library providing basic generic functionality required by any HTTP web service.

```
// https://mvnrepository.com/artifact/ee.bitweb/spring-core
implementation group: 'ee.bitweb', name: 'spring-core', version: '4.0.1'
implementation group: 'ee.bitweb', name: 'spring-core', version: '4.0.2'
```

Review available versions in [Maven Central](https://mvnrepository.com/artifact/ee.bitweb/spring-core).
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
}

group 'ee.bitweb'
version '4.0.2'
version '4.0.3'
java {
sourceCompatibility = '17'
}
Expand Down
9 changes: 0 additions & 9 deletions deploy/getVersion.sh

This file was deleted.

5 changes: 0 additions & 5 deletions deploy/injectGradleCredentials.sh

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/setSnapshotVersion.sh

This file was deleted.

4 changes: 2 additions & 2 deletions library.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ nexusPublishing {
repositories {
if (project.hasProperty('mavenCentralUsername') & project.hasProperty('mavenCentralPassword')) {
sonatype {
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots"))
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username = project.mavenCentralUsername
password = project.mavenCentralPassword
}
Expand Down
Loading