Skip to content

Commit

Permalink
fix: publish parent pom (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <toddbaert@gmail.com>

Signed-off-by: Todd Baert <toddbaert@gmail.com>
  • Loading branch information
toddbaert authored Sep 16, 2022
1 parent b70b54d commit 1150527
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ jobs:
# 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,
# letting exists-maven-plugin skip the nexus-staging-maven-plugin's entire deploy goal if the artifact exists.
run: |
mvn --non-recursive --batch-mode --settings release/m2-settings.xml clean deploy
modules=($(cat pom.xml | grep "<module>" | sed 's/\s*<.*>\(.*\)<.*>/\1/'))
for module in "${modules[@]}"
do
mvn --batch-mode --projects $module --settings release/m2-settings.xml clean deploy
mvn --batch-mode --projects $module --settings release/m2-settings.xml clean deploy
done
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"providers/flagd":"0.3.0","hooks/open-telemetry":"0.2.6"}
{".":"0.0.0","providers/flagd":"0.3.0","hooks/open-telemetry":"0.2.6"}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Sample pom.xml:
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.openfeature.contrib</groupId>
<artifactId>java-sdk-contrib</artifactId>
<version>0.0.0</version>
<artifactId>parent</artifactId>
<version><!-- current parent pom version --></version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>dev.openfeature.contrib.${providers | hooks | etc}</groupId>
Expand Down
4 changes: 2 additions & 2 deletions hooks/open-telemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.openfeature.contrib</groupId>
<artifactId>java-sdk-contrib</artifactId>
<version>0.0.0</version>
<artifactId>parent</artifactId>
<version>0.0.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>dev.openfeature.contrib.hooks</groupId>
Expand Down
17 changes: 15 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
<modelVersion>4.0.0</modelVersion>

<groupId>dev.openfeature.contrib</groupId>
<artifactId>java-sdk-contrib</artifactId>
<version>0.0.0</version>
<artifactId>parent</artifactId>
<version>0.0.1</version>
<packaging>pom</packaging>

<name>java-sdk-contrib</name>
<description>Contrib parent</description>
<url>https://openfeature.dev</url>

<developers>
<developer>
<id>toddbaert</id>
<name>Todd Baert</name>
<organization>OpenFeature</organization>
<url>https://openfeature.dev/</url>
</developer>
</developers>

<modules>
<module>hooks/open-telemetry</module>
<module>providers/flagd</module>
Expand Down
4 changes: 2 additions & 2 deletions providers/flagd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.openfeature.contrib</groupId>
<artifactId>java-sdk-contrib</artifactId>
<version>0.0.0</version>
<artifactId>parent</artifactId>
<version>0.0.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>dev.openfeature.contrib.providers</groupId>
Expand Down
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"bootstrap-sha": "5b1c87955b5d66b993f943161b72b30c398c1537",
"packages": {
".": {
"package-name": "dev.openfeature.contrib.parent",
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"versioning": "default",
"extra-files": [
"pom.xml"
]
},
"providers/flagd": {
"package-name": "dev.openfeature.contrib.providers.flagd",
"release-type": "simple",
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0

0 comments on commit 1150527

Please sign in to comment.