diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8f4007f6..4edb142e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 0.0.3 speakeasyVersion: 1.397.2 generationVersion: 2.415.8 - releaseVersion: 0.3.1 - configChecksum: 365985ca4474ceebb12c82aa370666a5 + releaseVersion: 0.3.2 + configChecksum: 948a0b278135b05b4e94954d9146736e repoURL: https://github.com/LukeHagar/plexjava.git published: true features: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f047c015..d1c49da8 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true java: - version: 0.3.1 + version: 0.3.2 additionalDependencies: [] additionalPlugins: [] artifactID: plexapi diff --git a/README.md b/README.md index 02bff3ab..41afeba1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'dev.plexapi:plexapi:0.3.1' +implementation 'dev.plexapi:plexapi:0.3.2' ``` Maven: @@ -45,7 +45,7 @@ Maven: dev.plexapi plexapi - 0.3.1 + 0.3.2 ``` diff --git a/RELEASES.md b/RELEASES.md index 5e95a7fc..3da2c90e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [java v0.3.1] . ### Releases -- [Maven Central v0.3.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.1 - . \ No newline at end of file +- [Maven Central v0.3.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.1 - . + +## 2024-09-16 18:32:47 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.397.2 (2.415.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.3.2] . +### Releases +- [Maven Central v0.3.2] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.3.2 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 3f7339a7..21c1e6df 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,7 @@ plugins { id 'java-library' id 'maven-publish' id 'signing' + id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3' } compileJava.options.encoding = "UTF-8" @@ -40,6 +41,7 @@ model { jar { dependsOn(":generatePomFileForMavenPublication") + archiveBaseName = "plexapi" into("META-INF/maven/dev.plexapi/plexapi") { from("$buildDir/pom.xml") @@ -61,7 +63,7 @@ tasks.withType(Javadoc) { } group = "dev.plexapi" -version = "0.3.1" +version = "0.3.2" sourcesJar { archiveBaseName = "plexapi" @@ -70,25 +72,36 @@ sourcesJar { javadocJar { archiveBaseName = "plexapi" } +sonatypeCentralUpload { + // This is your Sonatype generated username + username = System.getenv("SONATYPE_USERNAME") + // This is your sonatype generated password + password = System.getenv("SONATYPE_PASSWORD") + + // This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central) + archives = files( + "$buildDir/libs/plexapi-${version}.jar", + "$buildDir/libs/plexapi-${version}-sources.jar", + "$buildDir/libs/plexapi-${version}-javadoc.jar" + ) + + // This is the pom file to upload. This is required by central + pom = file("$buildDir/pom.xml") + + // This is your PGP private key. This is required to sign your files + signingKey = System.getenv("SONATYPE_SIGNING_KEY") + // This is your PGP private key passphrase to decrypt your private key + signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE") +} publishing { - repositories { - maven { - name = "OSSRH" - url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' - credentials { - username = System.getenv("MAVEN_USERNAME") - password = System.getenv("MAVEN_PASSWORD") - } - } - } publications { maven(MavenPublication) { groupId = 'dev.plexapi' artifactId = 'plexapi' - version = '0.3.1' + version = '0.3.2' from components.java diff --git a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java index 22c634a4..0af87874 100644 --- a/src/main/java/dev/plexapi/sdk/SDKConfiguration.java +++ b/src/main/java/dev/plexapi/sdk/SDKConfiguration.java @@ -36,9 +36,9 @@ class SDKConfiguration { } }; public String language = "java"; public String openapiDocVersion = "0.0.3"; - public String sdkVersion = "0.3.1"; + public String sdkVersion = "0.3.2"; public String genVersion = "2.415.8"; - public String userAgent = "speakeasy-sdk/java 0.3.1 2.415.8 0.0.3 dev.plexapi.sdk"; + public String userAgent = "speakeasy-sdk/java 0.3.2 2.415.8 0.0.3 dev.plexapi.sdk"; private Hooks _hooks = createHooks();