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
23 changes: 6 additions & 17 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
ci:
runs-on: ubuntu-latest

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
java-version: [24]
Expand All @@ -26,23 +29,9 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
cache: "maven"

- name: Set up settings.xml
run: |
mkdir -p ~/.m2
echo '<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${{ secrets.GH_USERNAME }}</username>
<password>${{ secrets.GH_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN

- name: Build with Maven
run: mvn clean compile
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<dependency>
<groupId>com.featurevisor</groupId>
<artifactId>featurevisor-java</artifactId>
<version>0.1.0</version>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/example/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Loading