From ea885010b9132b9c8b3aca9f76dcba79bed961a7 Mon Sep 17 00:00:00 2001 From: Fahad Heylaal Date: Mon, 13 Jul 2026 23:33:49 +0200 Subject: [PATCH 1/2] chore: upgrade to v1 --- pom.xml | 2 +- src/main/java/com/example/App.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d068acb..63e3e0d 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ com.featurevisor featurevisor-java - 0.1.0 + 1.0.0 com.fasterxml.jackson.core diff --git a/src/main/java/com/example/App.java b/src/main/java/com/example/App.java index d181c96..12e8d16 100644 --- a/src/main/java/com/example/App.java +++ b/src/main/java/com/example/App.java @@ -15,7 +15,8 @@ public static void main(String[] args) { System.out.println("Fetched JSON content"); // Create Featurevisor SDK instance with the datafile content - Featurevisor instance = Featurevisor.createInstance(jsonContent); + Featurevisor instance = Featurevisor.createFeaturevisor( + new Featurevisor.FeaturevisorOptions().datafileString(jsonContent)); // evaluate feature boolean isFeatureEnabled = instance.isEnabled("my_feature"); From b0e24aa24d935cfb927c7f843d498da43629e25c Mon Sep 17 00:00:00 2001 From: Fahad Heylaal Date: Mon, 13 Jul 2026 23:37:05 +0200 Subject: [PATCH 2/2] workflow updates --- .github/workflows/checks.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 5db69c9..fea4d07 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -12,6 +12,9 @@ jobs: ci: runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: matrix: java-version: [24] @@ -26,23 +29,9 @@ jobs: java-version: ${{ matrix.java-version }} distribution: "temurin" cache: "maven" - - - name: Set up settings.xml - run: | - mkdir -p ~/.m2 - echo ' - - - - github - ${{ secrets.GH_USERNAME }} - ${{ secrets.GH_TOKEN }} - - - ' > ~/.m2/settings.xml + server-id: github + server-username: GITHUB_ACTOR + server-password: GITHUB_TOKEN - name: Build with Maven run: mvn clean compile