diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bc09a4..14c2df8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Publish package to Maven Repository - run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository + run: ./gradlew publishToSonatype closeSonatypeStagingRepository env: SONATYPE_USER: ${{ secrets.SONATYPE_USER }} SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }} diff --git a/README.md b/README.md index 74516ac..27ccfe1 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ The JARs can be downloaded manually from our [Maven Central Repo](https://search **Gradle:** ```groovy -compile 'io.tus.java.client:tus-java-client:0.4.4' +implementation 'io.tus.java.client:tus-java-client:0.4.5' ``` **Maven:** @@ -92,7 +92,7 @@ compile 'io.tus.java.client:tus-java-client:0.4.4' io.tus.java.client tus-java-client - 0.4.4 + 0.4.5 ``` diff --git a/build.gradle b/build.gradle index 7d67e6b..2689793 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,10 @@ plugins { id 'signing' id('io.github.gradle-nexus.publish-plugin') version '1.1.0' - id 'maven-publish' } apply plugin: 'java' -apply plugin: 'maven' +apply plugin: 'maven-publish' group 'io.tus.java.client' @@ -76,9 +75,10 @@ def pomConfig = { publishing { publications { mavenJava(MavenPublication) { + from components.java groupId = 'io.tus.java.client' artifactId = 'tus-java-client' - version + version project.getVersion() artifact sourcesJar artifact javadocJar diff --git a/src/main/resources/version.properties b/src/main/resources/version.properties index 32796c8..56ff6d8 100644 --- a/src/main/resources/version.properties +++ b/src/main/resources/version.properties @@ -1 +1 @@ -versionNumber='0.4.4' \ No newline at end of file +versionNumber='0.4.5'