diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml new file mode 100644 index 0000000..5ae674d --- /dev/null +++ b/.github/workflows/maven-release.yml @@ -0,0 +1,31 @@ +name: Maven Release + +on: + release: + types: [ created ] + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Import GPG Key + uses: crazy-max/ghaction-import-gpg@v4 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + - uses: actions/checkout@v3 + - name: Set up Maven Central Repository + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + cache: 'maven' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - name: Publish package + run: mvn -DperformRelease=true clean deploy --batch-mode + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index eec1f90..ee8486e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Compiled class file *.class +target/ # Log file *.log diff --git a/pom.xml b/pom.xml index a1c4514..cf0e3e7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,20 +4,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 3.0.0 - - - de.viadee apiunit - 0.1 + 0.1.0-SNAPSHOT + 17 + 3.1.3 17 17 + 3.0.1 + 3.11.0 + 3.3.0 + 3.1.0 UTF-8 @@ -29,14 +28,109 @@ compile + + org.springframework.boot + spring-boot-starter + ${spring-boot.version} + + org.springframework.boot spring-boot-starter-web + 3.1.4 + org.junit.jupiter - junit-jupiter + junit-jupiter-api + 5.10.0 test + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg.version} + + + sign-artifacts + verify + + sign + + + + + + + + + + + + + + org.apache.maven.plugins + maven-release-plugin + ${maven-release.version} + + + + deploy + + + + + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source.version} + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler.version} + + ${java.version} + ${java.version} + + + + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2 + + \ No newline at end of file