File tree Expand file tree Collapse file tree
src/main/java/com/polytomic/api/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454
5555 - name : Publish to maven
5656 run : |
57+ ./.publish/prepare.sh
5758 ./gradlew publish
5859 env :
5960 MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
6061 MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
61- MAVEN_PUBLISH_REGISTRY_URL : " https://s01.oss.sonatype.org/content/repositories/releases/"
62+ MAVEN_PUBLISH_REGISTRY_URL : " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
63+ MAVEN_SIGNATURE_KID : ${{ secrets.MAVEN_SIGNATURE_KID }}
64+ MAVEN_SIGNATURE_SECRET_KEY : ${{ secrets.MAVEN_SIGNATURE_SECRET_KEY }}
65+ MAVEN_SIGNATURE_PASSWORD : ${{ secrets.MAVEN_SIGNATURE_PASSWORD }}
Original file line number Diff line number Diff line change 1+ # Write key ring file
2+ echo " $MAVEN_SIGNATURE_SECRET_KEY " > armored_key.asc
3+ gpg -o publish_key.gpg --dearmor armored_key.asc
4+
5+ # Generate gradle.properties file
6+ echo " signing.keyId=$MAVEN_SIGNATURE_KID " > gradle.properties
7+ echo " signing.secretKeyRingFile=publish_key.gpg" >> gradle.properties
8+ echo " signing.password=$MAVEN_SIGNATURE_PASSWORD " >> gradle.properties
Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ plugins {
22 id ' java-library'
33 id ' maven-publish'
44 id ' com.diffplug.spotless' version ' 6.11.0'
5+ id ' signing'
56}
67
78repositories {
89 mavenCentral()
910 maven {
10- url ' https://s01. oss.sonatype.org/content/repositories/releases /'
11+ url ' https://oss.sonatype.org/service/local/staging/deploy/maven2 /'
1112 }
1213}
1314
3536 withJavadocJar()
3637}
3738
39+ signing {
40+ sign(publishing. publications)
41+ }
3842test {
3943 useJUnitPlatform()
4044 testLogging {
@@ -46,14 +50,23 @@ publishing {
4650 maven(MavenPublication ) {
4751 groupId = ' com.polytomic'
4852 artifactId = ' polytomic-java'
49- version = ' 1.15.2 '
53+ version = ' 1.15.7 '
5054 from components. java
5155 pom {
56+ name = ' polytomic'
57+ description = ' The official SDK of polytomic'
58+ url = ' https://buildwithfern.com'
5259 licenses {
5360 license {
5461 name = ' MIT'
5562 }
5663 }
64+ developers {
65+ developer {
66+ name = ' polytomic'
67+ 68+ }
69+ }
5770 scm {
5871 connection = ' scm:git:git://github.com/polytomic/polytomic-java.git'
5972 developerConnection = ' scm:git:git://github.com/polytomic/polytomic-java.git'
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ private ClientOptions(
3030 {
3131 put ("X-Fern-Language" , "JAVA" );
3232 put ("X-Fern-SDK-Name" , "com.polytomic.fern:api-sdk" );
33- put ("X-Fern-SDK-Version" , "1.15.2 " );
33+ put ("X-Fern-SDK-Version" , "1.15.7 " );
3434 }
3535 });
3636 this .headerSuppliers = headerSuppliers ;
You can’t perform that action at this time.
0 commit comments