Skip to content

Commit 0daaba8

Browse files
Merge branch 'main' into feature/prefab
Signed-off-by: Justin Abrahms <[email protected]>
2 parents cdeeb31 + c39c79e commit 0daaba8

File tree

42 files changed

+3058
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3058
-62
lines changed

.github/component_owners.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ components:
4040
- jkebinger
4141
providers/multiprovider:
4242
- liran2000
43+
tools/flagd-http-connector:
44+
- liran2000
4345

4446
ignored-authors:
4547
- renovate-bot

.github/workflows/release-please.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,35 @@ on:
55
name: Run Release Please
66
jobs:
77
release-please:
8-
environment: publish
98
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write # for googleapis/release-please-action to create release commit
11+
pull-requests: write # for googleapis/release-please-action to create release PR
12+
issues: write # for googleapis/release-please-action to create labels
1013

1114
# Release-please creates a PR that tracks all changes
1215
steps:
13-
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4
16+
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4
1417
id: release
1518
with:
16-
token: ${{secrets.GITHUB_TOKEN}}
19+
token: ${{secrets.RELEASE_PLEASE_ACTION_TOKEN}}
20+
outputs:
21+
release_created: ${{ fromJSON(steps.release.outputs.paths_released)[0] != null }} # if we have a single release path, do the release
1722

23+
publish:
24+
environment: publish
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
needs: release-please
29+
if: ${{ fromJSON(needs.release-please.outputs.release_created || false) }}
30+
31+
steps:
1832
# The logic below handles the maven publication:
1933
- name: Checkout Repository
20-
if: ${{ steps.release.outputs.releases_created }}
2134
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2235

2336
- name: Set up JDK 21
24-
if: ${{ steps.release.outputs.releases_created }}
2537
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
2638
with:
2739
java-version: '21'
@@ -32,7 +44,6 @@ jobs:
3244
server-password: OSSRH_PASSWORD
3345

3446
- name: Cache local Maven repository
35-
if: ${{ steps.release.outputs.releases_created }}
3647
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
3748
with:
3849
path: ~/.m2/repository
@@ -41,15 +52,13 @@ jobs:
4152
${{ runner.os }}-maven-
4253
4354
- name: Configure GPG Key
44-
if: ${{ steps.release.outputs.releases_created }}
4555
run: |
4656
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
4757
env:
4858
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
4959

5060
# Release Please has already incremented versions and published tags, so we just need to publish (skip tests).
5161
- name: Maven Verify Deploy -DskipTests
52-
if: ${{ steps.release.outputs.releases_created }}
5362
# The nexus-staging-maven-plugin doesn't follow maven conventions. It stages all the projects with the last submodule: https://help.sonatype.com/repomanager2/staging-releases/configuring-your-project-for-deployment
5463
# This means there's no way to skip publishing of a particular module in a multi-module build, so we iterate over each module and publish them individually,
5564
# letting exists-maven-plugin skip the nexus-staging-maven-plugin's entire deploy goal if the artifact exists.

.release-please-manifest.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"hooks/open-telemetry": "3.2.1",
44
"providers/go-feature-flag": "0.4.3",
55
"providers/flagsmith": "0.0.10",
6-
"providers/env-var": "0.0.7",
6+
"providers/env-var": "0.0.10",
77
"providers/jsonlogic-eval-provider": "1.1.1",
88
"providers/unleash": "0.1.0-alpha",
99
"providers/flipt": "0.1.1",
1010
"providers/configcat": "0.1.0",
1111
"providers/statsig": "0.1.0",
1212
"providers/multiprovider": "0.0.1",
1313
"providers/prefab": "0.0.1",
14-
"tools/junit-openfeature": "0.1.2"
14+
"tools/junit-openfeature": "0.1.2",
15+
"tools/flagd-http-connector": "0.0.2",
16+
".": "0.2.2"
1517
}

CHANGELOG.md

Lines changed: 271 additions & 0 deletions
Large diffs are not rendered by default.

hooks/open-telemetry/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.openfeature.contrib</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>[0.2,)</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<groupId>dev.openfeature.contrib.hooks</groupId>
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>io.opentelemetry</groupId>
3232
<artifactId>opentelemetry-bom</artifactId>
33-
<version>1.48.0</version>
33+
<version>1.50.0</version>
3434
<type>pom</type>
3535
<scope>import</scope>
3636
</dependency>
@@ -55,4 +55,4 @@
5555
</dependency>
5656
</dependencies>
5757

58-
</project>
58+
</project>

pom.xml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>dev.openfeature.contrib</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.2.2</version> <!--x-release-please-version -->
99
<packaging>pom</packaging>
1010

1111
<name>java-sdk-contrib</name>
@@ -41,6 +41,7 @@
4141
<module>providers/statsig</module>
4242
<module>providers/prefab</module>
4343
<module>providers/multiprovider</module>
44+
<module>tools/flagd-http-connector</module>
4445
</modules>
4546

4647
<scm>
@@ -78,14 +79,14 @@
7879
<dependency>
7980
<groupId>io.cucumber</groupId>
8081
<artifactId>cucumber-bom</artifactId>
81-
<version>7.22.0</version>
82+
<version>7.22.2</version>
8283
<type>pom</type>
8384
<scope>import</scope>
8485
</dependency>
8586
<dependency>
8687
<groupId>org.mockito</groupId>
8788
<artifactId>mockito-bom</artifactId>
88-
<version>5.16.1</version>
89+
<version>5.18.0</version>
8990
<type>pom</type>
9091
<scope>import</scope>
9192
</dependency>
@@ -128,13 +129,6 @@
128129
<scope>test</scope>
129130
</dependency>
130131

131-
<dependency>
132-
<groupId>uk.org.lidalia</groupId>
133-
<artifactId>slf4j-test</artifactId>
134-
<version>1.2.0</version>
135-
<scope>test</scope>
136-
</dependency>
137-
138132
<dependency>
139133
<groupId>org.assertj</groupId>
140134
<artifactId>assertj-core</artifactId>
@@ -249,7 +243,7 @@
249243
<plugin>
250244
<groupId>org.honton.chas</groupId>
251245
<artifactId>exists-maven-plugin</artifactId>
252-
<version>0.7.0</version>
246+
<version>0.14.0</version>
253247
<executions>
254248
<execution>
255249
<goals>
@@ -411,7 +405,7 @@
411405
<dependency>
412406
<groupId>com.puppycrawl.tools</groupId>
413407
<artifactId>checkstyle</artifactId>
414-
<version>10.23.0</version>
408+
<version>10.24.0</version>
415409
</dependency>
416410
</dependencies>
417411
<executions>
@@ -481,7 +475,7 @@
481475
<plugin>
482476
<groupId>com.diffplug.spotless</groupId>
483477
<artifactId>spotless-maven-plugin</artifactId>
484-
<version>2.44.4</version>
478+
<version>2.44.5</version>
485479
<configuration>
486480
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
487481
<!-- <ratchetFrom>origin/main</ratchetFrom>-->

providers/configcat/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>dev.openfeature.contrib</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>[0.2,)</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<groupId>dev.openfeature.contrib.providers</groupId>
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>com.configcat</groupId>
2222
<artifactId>configcat-java-client</artifactId>
23-
<version>9.4.2</version>
23+
<version>9.4.3</version>
2424
</dependency>
2525

2626
<dependency>

providers/env-var/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## [0.0.10](https://github.com/open-feature/java-sdk-contrib/compare/dev.openfeature.contrib.providers.env-var-v0.0.9...dev.openfeature.contrib.providers.env-var-v0.0.10) (2025-05-02)
4+
5+
6+
### 🧹 Chore
7+
8+
* update README ([86b578f](https://github.com/open-feature/java-sdk-contrib/commit/86b578fcd6b27c88fb11fe4b30207f2db2448f41))
9+
10+
## [0.0.9](https://github.com/open-feature/java-sdk-contrib/compare/dev.openfeature.contrib.providers.env-var-v0.0.8...dev.openfeature.contrib.providers.env-var-v0.0.9) (2025-05-02)
11+
12+
13+
### 🧹 Chore
14+
15+
* update README ([ec19d29](https://github.com/open-feature/java-sdk-contrib/commit/ec19d299699c0297e5356ab71117d820a8c070bf))
16+
17+
## [0.0.8](https://github.com/open-feature/java-sdk-contrib/compare/dev.openfeature.contrib.providers.env-var-v0.0.7...dev.openfeature.contrib.providers.env-var-v0.0.8) (2025-05-02)
18+
19+
20+
### ✨ New Features
21+
22+
* migrate to Java 11 ([#1336](https://github.com/open-feature/java-sdk-contrib/issues/1336)) ([a4be1ff](https://github.com/open-feature/java-sdk-contrib/commit/a4be1ff66870a72189873171e83c5b65dbb9991c))
23+
24+
25+
### 🧹 Chore
26+
27+
* loosen parent version req ([#1341](https://github.com/open-feature/java-sdk-contrib/issues/1341)) ([4c7b584](https://github.com/open-feature/java-sdk-contrib/commit/4c7b58413b47db5c8c52b906ec2cbbc846779199))
28+
329
## [0.0.7](https://github.com/open-feature/java-sdk-contrib/compare/dev.openfeature.contrib.providers.env-var-v0.0.6...dev.openfeature.contrib.providers.env-var-v0.0.7) (2024-09-25)
430

531

providers/env-var/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Environment Variables provider allows you to read feature flags from the [proces
1010
<dependency>
1111
<groupId>dev.openfeature.contrib.providers</groupId>
1212
<artifactId>env-var</artifactId>
13-
<version>0.0.7</version>
13+
<version>0.0.10</version>
1414
</dependency>
1515
```
1616

@@ -25,7 +25,7 @@ To use the `EnvVarProvider` create an instance and use it as a provider:
2525
OpenFeatureAPI.getInstance().setProvider(provider);
2626
```
2727

28-
### Configuring different methods of fetching environment variables
28+
### Configuring different methods for fetching environment variables
2929

3030
This provider defines an `EnvironmentGateway` interface, which is used to access the actual environment variables.
3131
The class [OS][os-class] is implementing this interface and creates the actual connection between provider
@@ -40,7 +40,7 @@ of the provider.
4040
OpenFeatureAPI.getInstance().setProvider(provider);
4141
```
4242

43-
### Key Transformation
43+
### Key transformation
4444

4545
This provider supports transformation of keys to support different patterns used for naming feature flags and for
4646
naming environment variables, e.g. SCREAMING_SNAKE_CASE env variables vs. hyphen-case keys for feature flags.

providers/env-var/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>dev.openfeature.contrib</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.1.0</version>
8+
<version>[0.2,)</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<groupId>dev.openfeature.contrib.providers</groupId>
1212
<artifactId>env-var</artifactId>
13-
<version>0.0.7</version> <!--x-release-please-version -->
13+
<version>0.0.10</version> <!--x-release-please-version -->
1414

1515
<properties>
1616
<!-- override module name defined in parent ("-" is not allowed) -->

0 commit comments

Comments
 (0)