diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8531e775..5a99a6a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,19 @@ jobs: sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link +# - name: Setup java +# uses: actions/setup-java@v1 +# with: +# java-version: ${{ matrix.java }} - name: Setup java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} + distribution: 'zulu' +# cache: 'maven' + + - name: Check Maven version + run: mvn -v - name: Cache Maven packages uses: actions/cache@v4 @@ -45,4 +54,4 @@ jobs: node-version: 14.x - name: Run the Maven verify phase - run: mvn verify -Dgpg.skip=true + run: mvn verify -Dgpg.skip=true --no-transfer-progress \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..b2116978 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,49 @@ +name: Publish to Maven Central + +on: + release: + types: [created] + workflow_dispatch: + inputs: + version: + description: 'Version to publish' + required: false + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup JDK 7 + uses: actions/setup-java@v4 + with: + java-version: '7' + distribution: 'zulu' + cache: 'maven' + server-id: central + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.SIGNING_KEY }} + gpg-passphrase: SIGNING_PASSWORD + + - name: Set version (if provided) + if: github.event.inputs.version != '' + run: | + mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -DgenerateBackupPoms=false + + - name: Build and publish + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + run: | + mvn clean deploy -P publish \ + --no-transfer-progress \ + --batch-mode \ +# -DskipTests \ +# -Dgpg.keyname=${{ secrets.SIGNING_KEY_ID }} \ +# -Dgpg.passphrase=${{ secrets.SIGNING_PASSWORD }} \ +# -Dgpg.pinentry-mode=loopback \ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 457cb917..675c2230 100644 --- a/pom.xml +++ b/pom.xml @@ -1,18 +1,21 @@ - + 4.0.0 - io.socket + io.github.robinpcrd socket.io-client - 2.2.0-SNAPSHOT + 2.2.0 jar socket.io-client - Socket.IO Client Library for Java - https://github.com/socketio/socket.io-client-java + Socket.IO Client Library for Java (Fork) + https://github.com/RobinPcrd/socket.io-client-java + github @@ -27,9 +30,9 @@ - https://github.com/socketio/socket.io-client-java - scm:git:https://github.com/socketio/socket.io-client-java.git - scm:git:https://github.com/socketio/socket.io-client-java.git + https://github.com/RobinPcrd/socket.io-client-java + scm:git:https://github.com/RobinPcrd/socket.io-client-java.git + scm:git:https://github.com/RobinPcrd/socket.io-client-java.git HEAD @@ -39,8 +42,14 @@ Naoyuki Kanezawa naoyuki.kanezawa@gmail.com + + robinpcrd + Robin Picard + robin.picard.dev@gmail.com + + - 3.0.4 + 3.6.3 @@ -89,16 +99,18 @@ + @@ -129,6 +141,12 @@ + + + --pinentry-mode + loopback + + org.apache.maven.plugins @@ -167,17 +185,19 @@ deploy + org.codehaus.mojo exec-maven-plugin @@ -249,4 +269,26 @@ + + + + publish + + + + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 + true + + central + true + uploaded + + + + + + +