Skip to content

🌿 Fern Regeneration -- May 19, 2025 #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
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
8 changes: 8 additions & 0 deletions .publish/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Write key ring file
echo "$MAVEN_SIGNATURE_SECRET_KEY" > armored_key.asc
gpg -o publish_key.gpg --dearmor armored_key.asc

# Generate gradle.properties file
echo "signing.keyId=$MAVEN_SIGNATURE_KID" > gradle.properties
echo "signing.secretKeyRingFile=publish_key.gpg" >> gradle.properties
echo "signing.password=$MAVEN_SIGNATURE_PASSWORD" >> gradle.properties
53 changes: 41 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.11.0'
id 'signing'
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
}

repositories {
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/releases/'
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}

Expand Down Expand Up @@ -44,7 +46,7 @@ java {

group = 'io.intercom'

version = '3.0.0-alpha4'
version = '3.0.0-alpha5'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand All @@ -59,6 +61,10 @@ javadocJar {
archiveBaseName = "intercom-java"
}

signing {
sign(publishing.publications)
}

test {
useJUnitPlatform()
testLogging {
Expand All @@ -71,15 +77,24 @@ publishing {
maven(MavenPublication) {
groupId = 'io.intercom'
artifactId = 'intercom-java'
version = '3.0.0-alpha4'
version = '3.0.0-alpha5'
from components.java
pom {
name = 'intercom'
description = 'The official SDK of intercom'
url = 'https://buildwithfern.com'
licenses {
license {
name = 'The MIT License (MIT)'
url = 'https://mit-license.org/'
}
}
developers {
developer {
name = 'intercom'
email = 'developers@intercom.com'
}
}
scm {
connection = 'scm:git:git://github.com/intercom/intercom-java.git'
developerConnection = 'scm:git:git://github.com/intercom/intercom-java.git'
Expand All @@ -88,14 +103,28 @@ publishing {
}
}
}
repositories {
maven {
url "$System.env.MAVEN_PUBLISH_REGISTRY_URL"
credentials {
username "$System.env.MAVEN_USERNAME"
password "$System.env.MAVEN_PASSWORD"
}
}
}
}

sonatypeCentralUpload {
username = "$System.env.MAVEN_USERNAME"
password = "$System.env.MAVEN_PASSWORD"

archives = files(
"$buildDir/libs/intercom-java-" + version + ".jar",
"$buildDir/libs/intercom-java-" + version + "-sources.jar",
"$buildDir/libs/intercom-java-" + version + "-javadoc.jar"
)

pom = file("$buildDir/publications/maven/pom-default.xml")
signingKey = "$System.env.MAVEN_SIGNATURE_SECRET_KEY"
signingKeyPassphrase = "$System.env.MAVEN_SIGNATURE_PASSWORD"
}

signing {
def signingKeyId = "$System.env.MAVEN_SIGNATURE_SECRET_KEY"
def signingPassword = "$System.env.MAVEN_SIGNATURE_PASSWORD"
useInMemoryPgpKeys(signingKeyId, signingPassword)
sign publishing.publications.maven
}

sonatypeCentralUpload.dependsOn build
Empty file added gradle.properties
Empty file.
4 changes: 2 additions & 2 deletions src/main/java/com/intercom/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "io.intercom:intercom-java/3.0.0-alpha4");
put("User-Agent", "io.intercom:intercom-java/3.0.0-alpha5");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.intercom.fern:api-sdk");
put("X-Fern-SDK-Version", "3.0.0-alpha4");
put("X-Fern-SDK-Version", "3.0.0-alpha5");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down