Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Publish to Maven Central
run: ./gradlew publishAllPublicationsToCentralPortal
run: ./gradlew publishAggregationToCentralPortal
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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()
}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down