diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index e5f2190c0..f33a7a5fe 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -177,4 +177,4 @@ jobs: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRIBUTION }} - name: Publish to Maven Central - run: ./gradlew publishAllPublicationsToCentralPortal \ No newline at end of file + run: ./gradlew publishAggregationToCentralPortal \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 20bbb60fb..3a19a1be4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,10 +4,10 @@ plugins { id("signing") id("maven-publish") id("project-report") - id("com.diffplug.spotless") version "6.25.0" - id("com.github.ben-manes.versions") version "0.51.0" - id("io.freefair.lombok") version "8.10.2" - id("com.gradleup.nmcp") version "0.0.9" + id("com.diffplug.spotless") version "7.2.1" + id("com.github.ben-manes.versions") version "0.52.0" + id("io.freefair.lombok") version "8.14" + id("com.gradleup.nmcp.aggregation").version("1.0.2") kotlin("jvm") version "2.2.0" } @@ -202,14 +202,16 @@ signing { sign(publishing.publications["mavenJava"]) } -nmcp { - // https://github.com/GradleUp/nmcp - publishAllProjectsProbablyBreakingProjectIsolation { +nmcpAggregation { + centralPortal { username = System.getenv("SONATYPE_USERNAME") password = System.getenv("SONATYPE_PASSWORD") // publish manually from the portal - publicationType = "USER_MANAGED" + publishingType = "USER_MANAGED" // or if you want to publish automatically - // publicationType = "AUTOMATIC" + // publishingType = "AUTOMATIC" } + + // Publish all projects that apply the 'maven-publish' plugin + publishAllProjectsProbablyBreakingProjectIsolation() } diff --git a/src/main/java/org/stellar/sdk/responses/gson/EffectDeserializer.java b/src/main/java/org/stellar/sdk/responses/gson/EffectDeserializer.java index 5d4e5f19e..02737adee 100644 --- a/src/main/java/org/stellar/sdk/responses/gson/EffectDeserializer.java +++ b/src/main/java/org/stellar/sdk/responses/gson/EffectDeserializer.java @@ -26,7 +26,7 @@ public EffectResponse deserialize( int type = json.getAsJsonObject().get("type_i").getAsInt(); switch (type) { - // Account effects + // Account effects case 0: return gson.fromJson(json, AccountCreatedEffectResponse.class); case 1: @@ -43,14 +43,14 @@ public EffectResponse deserialize( return gson.fromJson(json, AccountFlagsUpdatedEffectResponse.class); case 7: return gson.fromJson(json, AccountInflationDestinationUpdatedEffectResponse.class); - // Signer effects + // Signer effects case 10: return gson.fromJson(json, SignerCreatedEffectResponse.class); case 11: return gson.fromJson(json, SignerRemovedEffectResponse.class); case 12: return gson.fromJson(json, SignerUpdatedEffectResponse.class); - // Trustline effects + // Trustline effects case 20: return gson.fromJson(json, TrustlineCreatedEffectResponse.class); case 21: @@ -65,7 +65,7 @@ public EffectResponse deserialize( return gson.fromJson(json, TrustlineAuthorizedToMaintainLiabilitiesEffectResponse.class); case 26: return gson.fromJson(json, TrustlineFlagsUpdatedEffectResponse.class); - // Trading effects + // Trading effects case 30: return gson.fromJson(json, OfferCreatedEffectResponse.class); case 31: @@ -74,24 +74,24 @@ public EffectResponse deserialize( return gson.fromJson(json, OfferUpdatedEffectResponse.class); case 33: return gson.fromJson(json, TradeEffectResponse.class); - // Data effects + // Data effects case 40: return gson.fromJson(json, DataCreatedEffectResponse.class); case 41: return gson.fromJson(json, DataRemovedEffectResponse.class); case 42: return gson.fromJson(json, DataUpdatedEffectResponse.class); - // Bump Sequence effects + // Bump Sequence effects case 43: return gson.fromJson(json, SequenceBumpedEffectResponse.class); - // claimable balance effects + // claimable balance effects case 50: return gson.fromJson(json, ClaimableBalanceCreatedEffectResponse.class); case 51: return gson.fromJson(json, ClaimableBalanceClaimantCreatedEffectResponse.class); case 52: return gson.fromJson(json, ClaimableBalanceClaimedEffectResponse.class); - // sponsorship effects + // sponsorship effects case 60: return gson.fromJson(json, AccountSponsorshipCreatedEffectResponse.class); case 61: