Skip to content
Open
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
12 changes: 8 additions & 4 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish SDK Snapshot artifact

on:
push:
branches: [main]
branches: [main, 'snapshot/**']

env:
CI: true
Expand All @@ -28,10 +28,14 @@ jobs:
java-version: 17
distribution: 'adopt'

- name: Stage snapshot artifact
run: ./gradlew eppo:assemble eppo:publish -Psnapshot
- name: Stage snapshot artifacts
run: ./gradlew android-sdk-framework:assemble android-sdk-framework:publish eppo:assemble eppo:publish -Psnapshot
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow runs android-sdk-framework:publish / eppo:publish in the "Stage snapshot artifacts" step and then runs publishAllPublicationsToMavenCentralRepository for each module afterwards. Since publish already triggers PublishToMavenRepository tasks, this is likely redundant and can double-publish (or fail with "already published"). Consider making the staging step assemble-only (or publish to MavenLocal) and keep the actual Maven Central publishing in the dedicated steps.

Suggested change
run: ./gradlew android-sdk-framework:assemble android-sdk-framework:publish eppo:assemble eppo:publish -Psnapshot
run: ./gradlew android-sdk-framework:assemble eppo:assemble -Psnapshot

Copilot uses AI. Check for mistakes.

- name: Publish Snapshot to Maven Central Portal
- name: Publish framework snapshot to Maven Central Portal
working-directory: android-sdk-framework
run: ../gradlew publishAllPublicationsToMavenCentralRepository -Psnapshot --no-daemon --stacktrace

- name: Publish SDK snapshot to Maven Central Portal
working-directory: eppo
run: ../gradlew publishAllPublicationsToMavenCentralRepository -Psnapshot --no-daemon --stacktrace

Expand Down
2 changes: 1 addition & 1 deletion android-sdk-framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "cloud.eppo"
version = "0.1.0"
version = "0.1.0-SNAPSHOT"

android {
namespace "cloud.eppo.android.framework"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,12 @@ public CompletableFuture<AndroidBaseClient<JsonFlagType>> buildAndInitAsync() {
(success, ex) -> {
if (ex == null && Boolean.TRUE.equals(success)) {
ret.complete(newInstance);
} else if (offlineMode || failCount.incrementAndGet() == 2) {
} else if (offlineMode || ex != null || failCount.incrementAndGet() == 2) {
ret.completeExceptionally(
new EppoInitializationException(
"Unable to initialize client; Configuration could not be loaded", ex));
} else {
Log.i(TAG, "Initial config was not used.");
failCount.incrementAndGet();
Log.i(TAG, "Initial config was not used; waiting for fetch.");
}
return null;
});
Expand Down
6 changes: 4 additions & 2 deletions eppo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "cloud.eppo"
version = "4.12.1"
version = "5.0.0-SNAPSHOT"

android {
buildFeatures.buildConfig true
Expand Down Expand Up @@ -68,14 +68,16 @@ ext.versions = [
]

dependencies {
api 'cloud.eppo:sdk-common-jvm:3.13.1'
api project(':android-sdk-framework')
api 'cloud.eppo:sdk-common-jvm:4.0.0-SNAPSHOT'

implementation 'org.slf4j:slf4j-api:2.0.17'

implementation "androidx.core:core:${versions.androidx_core}"
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp}"
implementation "com.github.zafarkhaja:java-semver:${versions.semver}"
implementation "com.fasterxml.jackson.core:jackson-databind:2.19.1"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:2.19.1"

testImplementation "junit:junit:${versions.junit}"
testImplementation "commons-io:commons-io:${versions.commonsio}"
Expand Down
Loading
Loading