Skip to content

Commit

Permalink
inc version for maven central deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede committed Feb 28, 2024
1 parent 8c76887 commit f91c016
Show file tree
Hide file tree
Showing 121 changed files with 183 additions and 220 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/maven-publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
name: Publish Release Package to Github Packages
name: Publish release package to the Maven Central Repository
on:
release:
types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Install gpg secret key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode clean deploy
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P osslabz-release clean deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
144 changes: 50 additions & 94 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

Expand All @@ -9,7 +11,7 @@

<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
<packaging>pom</packaging>

<name>XChange</name>
Expand Down Expand Up @@ -290,16 +292,16 @@
<artifactId>jackson-databind</artifactId>
<version>${version.fasterxml}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${version.fasterxml}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${version.fasterxml}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${version.fasterxml}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${version.fasterxml}</version>
</dependency>
<dependency>
<groupId>org.web3j</groupId>
<artifactId>crypto</artifactId>
Expand Down Expand Up @@ -351,12 +353,12 @@
<artifactId>pubnub-gson</artifactId>
<version>4.31.3</version>
</dependency>
<!-- Netty version compatible with service-wamp -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.96.Final</version>
</dependency>
<!-- Netty version compatible with service-wamp -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.96.Final</version>
</dependency>

</dependencies>

Expand Down Expand Up @@ -412,76 +414,70 @@

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>gpg.passphrase</name>
<value>true</value>
</property>
</activation>
<id>osslabz-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<id>attach-sources</id>
<goals>
<goal>sign</goal>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>


</plugin>

<!-- Generates a source code JAR during package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-sources</id>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>
<!-- Generates JavaDocs during package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
<goal>sign</goal>
</goals>
<configuration>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>

</profiles>


<build>

<plugins>
Expand All @@ -497,47 +493,7 @@
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<!-- for deploying to Maven Central -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<quiet>true</quiet>
<doclint>none</doclint>
<source>${version.java}</source>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down Expand Up @@ -574,7 +530,7 @@
<executions>
<execution>
<goals>
<!-- <goal>format</goal>-->
<!-- <goal>format</goal>-->
</goals>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion xchange-ascendex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-ascendex</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bankera/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bankera</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bibox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bibox</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-binance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>xchange-parent</artifactId>
<groupId>net.osslabz</groupId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-binance</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitbay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitbay</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitcoinaverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitcoinaverage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitcoincharts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitcoincharts</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitcoincore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitcoincore</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitcoinde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitcoinde</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitcointoyou/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitcointoyou</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitfinex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitfinex</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitflyer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>xchange-parent</artifactId>
<groupId>net.osslabz</groupId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<organization>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bithumb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bithumb</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion xchange-bitmex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.osslabz</groupId>
<artifactId>xchange-parent</artifactId>
<version>5.1.2.1</version>
<version>5.1.2.2</version>
</parent>

<artifactId>xchange-bitmex</artifactId>
Expand Down
Loading

0 comments on commit f91c016

Please sign in to comment.