Skip to content

Commit 34deb32

Browse files
authored
Merge branch 'main' into feature/flagd-http-connector
2 parents b9d525a + f22e9e4 commit 34deb32

File tree

7 files changed

+48
-13
lines changed

7 files changed

+48
-13
lines changed

.github/workflows/release-please.yml

Lines changed: 15 additions & 6 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:
1316
- uses: googleapis/release-please-action@v4
1417
id: release
1518
with:
1619
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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",

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
<dependency>
412412
<groupId>com.puppycrawl.tools</groupId>
413413
<artifactId>checkstyle</artifactId>
414-
<version>10.23.0</version>
414+
<version>10.23.1</version>
415415
</dependency>
416416
</dependencies>
417417
<executions>

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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) -->

providers/env-var/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.7
1+
0.0.10

0 commit comments

Comments
 (0)