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
14 changes: 13 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package

- name: Set up Apache Maven Central
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Publish to Maven Central
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mvn clean package
```

Then manually install the following JARs:
- `target/mx-platform-java-0.2.1.jar`
- `target/mx-platform-java-0.2.2.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiPackage: "com.mx.client.mx-platform-api"
artifactDescription: "A Java library for the MX Platform API"
artifactId: "mx-platform-java"
artifactUrl: "https://github.com/mxenabled/mx-platform-java"
artifactVersion: 0.2.1
artifactVersion: 0.2.2
developerEmail: "devexperience@mx.com"
developerName: "MX"
developerOrganization: "MX Technologies Inc."
Expand Down
6 changes: 6 additions & 0 deletions openapi/templates/pom.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>mx-platform-java</artifactId>
<packaging>jar</packaging>
<name>mx-platform-java</name>
<version>0.2.1</version>
<version>0.2.2</version>
<url>https://github.com/mxenabled/mx-platform-java</url>
<description>A Java library for the MX Platform API</description>
<scm>
Expand Down Expand Up @@ -214,6 +214,12 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mx/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.2.1/java");
setUserAgent("OpenAPI-Generator/0.2.2/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down