File tree Expand file tree Collapse file tree
src/main/java/io/gate/gateapi Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+ name : Maven Package
5+
6+ on :
7+ push :
8+ tags :
9+ - ' *'
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ packages : write
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Set up JDK 11
22+ uses : actions/setup-java@v4
23+ with :
24+ java-version : ' 11'
25+ distribution : ' temurin'
26+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
27+ settings-path : ${{ github.workspace }} # location for the settings.xml file
28+
29+ - name : Build with Maven
30+ run : mvn -B package -DskipTests --file pom.xml --settings settings.xml
31+
32+ - name : Set up Apache Maven Central
33+ uses : actions/setup-java@v4
34+ with : # running setup-java again overwrites the settings.xml
35+ distribution : ' temurin'
36+ java-version : ' 11'
37+ server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
38+ server-username : MAVEN_USERNAME # env variable for username in deploy
39+ server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
40+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
41+ gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
42+
43+ - name : Publish to Apache Maven Central
44+ run : mvn deploy
45+ env :
46+ MAVEN_USERNAME : ${{ vars.MAVEN_USERNAME }}
47+ MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
48+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 22
33Gate API v4
44
5- - API version: 4.92.1
6- - SDK version: 6.92.1
5+ - API version: 4.92.2
6+ - SDK version: 6.92.2
77
88Welcome to Gate.io API
99
@@ -53,7 +53,7 @@ Add this dependency to your project's POM:
5353<dependency >
5454 <groupId >io.gate</groupId >
5555 <artifactId >gate-api</artifactId >
56- <version >6.92.1 </version >
56+ <version >6.92.2 </version >
5757 <scope >compile</scope >
5858</dependency >
5959```
@@ -63,7 +63,7 @@ Add this dependency to your project's POM:
6363Add this dependency to your project's build file:
6464
6565``` groovy
66- compile "io.gate:gate-api:6.92.1 "
66+ compile "io.gate:gate-api:6.92.2 "
6767```
6868
6969### Others
@@ -76,7 +76,7 @@ mvn clean package
7676
7777Then manually install the following JARs:
7878
79- * ` target/gate-api-6.92.1 .jar `
79+ * ` target/gate-api-6.92.2 .jar `
8080* ` target/lib/*.jar `
8181
8282To install the API client library to your local Maven repository, simply execute:
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33apply plugin : ' java'
44
55group = ' io.gate'
6- version = ' 6.92.1 '
6+ version = ' 6.92.2 '
77
88buildscript {
99 repositories {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22 settings(
33 organization := " io.gate" ,
44 name := " gate-api" ,
5- version := " 6.92.1 " ,
5+ version := " 6.92.2 " ,
66 scalaVersion := " 2.11.4" ,
77 scalacOptions ++= Seq (" -feature" ),
88 javacOptions in compile ++= Seq (" -Xlint:deprecation" ),
Original file line number Diff line number Diff line change 55 <artifactId >gate-api</artifactId >
66 <packaging >jar</packaging >
77 <name >gate-api</name >
8- <version >6.92.1 </version >
8+ <version >6.92.2 </version >
99 <url >https://github.com/gateio/gateapi-java.git</url >
1010 <description >Java client for gateapi</description >
1111 <scm >
Original file line number Diff line number Diff line change 1+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd" >
4+ <servers >
5+ <server >
6+ <id >ossrh</id >
7+ <username >${env.MAVEN_USERNAME}</username >
8+ <password >${env.MAVEN_CENTRAL_TOKEN}</password >
9+ </server >
10+ <server >
11+ <id >gpg.passphrase</id >
12+ <passphrase >${env.MAVEN_GPG_PASSPHRASE}</passphrase >
13+ </server >
14+ </servers >
15+ </settings >
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ private void init() {
113113 json = new JSON ();
114114
115115 // Set default User-Agent.
116- setUserAgent ("OpenAPI-Generator/6.92.1 /java" );
116+ setUserAgent ("OpenAPI-Generator/6.92.2 /java" );
117117
118118 authentications = new HashMap <String , Authentication >();
119119 }
You can’t perform that action at this time.
0 commit comments