diff --git a/.github/workflows/release-project-in-dir.yml b/.github/workflows/release-project-in-dir.yml
index dc79b6f6c2..02280d5a1f 100644
--- a/.github/workflows/release-project-in-dir.yml
+++ b/.github/workflows/release-project-in-dir.yml
@@ -29,6 +29,11 @@ jobs:
java-version: 17
distribution: temurin
cache: 'maven'
+ server-id: central
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_CENTRAL_TOKEN
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Change version to release version
# Assume that RELEASE_VERSION will have form like: "v1.0.1". So we cut the "v"
@@ -37,15 +42,12 @@ jobs:
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}
- - name: Release Maven package
- uses: samuelmeuli/action-maven-publish@v1
- with:
- maven_profiles: "release"
- maven_args: ${{ env.MAVEN_ARGS }}
- gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
- nexus_username: ${{ secrets.OSSRH_USERNAME }}
- nexus_password: ${{ secrets.OSSRH_TOKEN }}
+ - name: Publish to Apache Maven Central
+ run: mvn package deploy -Prelease
+ env:
+ MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
+ MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# This is separate job because there were issues with git after release step, was not able to commit changes.
update-working-version:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e7826ce613..1ceb5b2b6c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -30,6 +30,10 @@ jobs:
echo "Setting version_branch to v4"
echo "tmp_version_branch=v4" >> "$GITHUB_ENV"
- if: ${{ startsWith(github.event.release.tag_name, 'v5.' ) }}
+ run: |
+ echo "Setting version_branch to 5.0.x"
+ echo "tmp_version_branch=5.0.x" >> "$GITHUB_ENV"
+ - if: ${{ startsWith(github.event.release.tag_name, 'v6.' ) }}
run: |
echo "Setting version_branch to main"
echo "tmp_version_branch=main" >> "$GITHUB_ENV"
diff --git a/.github/workflows/snapshot-releases.yml b/.github/workflows/snapshot-releases.yml
index 66fe9d25a3..f9219d1278 100644
--- a/.github/workflows/snapshot-releases.yml
+++ b/.github/workflows/snapshot-releases.yml
@@ -33,14 +33,18 @@ jobs:
- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
- distribution: temurin
java-version: 17
+ distribution: temurin
cache: 'maven'
- - name: Release Maven package
- uses: samuelmeuli/action-maven-publish@v1
- with:
- maven_profiles: "release"
- gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
- nexus_username: ${{ secrets.OSSRH_USERNAME }}
- nexus_password: ${{ secrets.OSSRH_TOKEN }}
+ server-id: central
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_CENTRAL_TOKEN
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: MAVEN_GPG_PASSPHRASE
+
+ - name: Publish to Apache Maven Central
+ run: mvn package deploy -Prelease
+ env:
+ MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
+ MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
diff --git a/bootstrapper-maven-plugin/pom.xml b/bootstrapper-maven-plugin/pom.xml
index 535945760f..1ab08b975a 100644
--- a/bootstrapper-maven-plugin/pom.xml
+++ b/bootstrapper-maven-plugin/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
bootstrapper
diff --git a/caffeine-bounded-cache-support/pom.xml b/caffeine-bounded-cache-support/pom.xml
index bd51e0af11..924164c6cb 100644
--- a/caffeine-bounded-cache-support/pom.xml
+++ b/caffeine-bounded-cache-support/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
caffeine-bounded-cache-support
diff --git a/micrometer-support/pom.xml b/micrometer-support/pom.xml
index 67fe0d4b4c..3c568e76fd 100644
--- a/micrometer-support/pom.xml
+++ b/micrometer-support/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
micrometer-support
diff --git a/operator-framework-bom/pom.xml b/operator-framework-bom/pom.xml
index d0bae9c140..ce3963ef3a 100644
--- a/operator-framework-bom/pom.xml
+++ b/operator-framework-bom/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
operator-framework-bom
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
pom
Operator SDK - Bill of Materials
Java SDK for implementing Kubernetes operators
@@ -33,19 +33,12 @@
https://github.com/operator-framework/java-operator-sdk/tree/master
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
-
- 1.7.0
- 3.2.7
+ 3.2.8
3.3.1
3.11.2
2.44.3
+ 0.8.0
@@ -115,6 +108,17 @@
release
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ **/*IT.java
+ **/*E2E.java
+ **/InformerRelatedBehaviorTest.java
+
+
+
org.apache.maven.plugins
maven-javadoc-plugin
@@ -138,13 +142,13 @@
jar
+ verify
org.apache.maven.plugins
maven-gpg-plugin
- ${maven-gpg-plugin.version}
sign-artifacts
@@ -162,14 +166,15 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${central-publishing-maven-plugin.version}
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
+ true
+ published
diff --git a/operator-framework-core/pom.xml b/operator-framework-core/pom.xml
index a4dc87a3d3..cad50ebc32 100644
--- a/operator-framework-core/pom.xml
+++ b/operator-framework-core/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
../pom.xml
diff --git a/operator-framework-junit5/pom.xml b/operator-framework-junit5/pom.xml
index d2075303be..7e68616edf 100644
--- a/operator-framework-junit5/pom.xml
+++ b/operator-framework-junit5/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
operator-framework-junit-5
diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml
index e2aae87401..cb49b0d39b 100644
--- a/operator-framework/pom.xml
+++ b/operator-framework/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
operator-framework
diff --git a/pom.xml b/pom.xml
index 6e7482f024..12bfc14961 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
pom
Operator SDK for Java
Java SDK for implementing Kubernetes operators
@@ -61,7 +61,7 @@
jdk
5.12.0
- 7.1.0
+ 7.2.0
2.0.12
2.24.3
5.16.0
@@ -79,7 +79,8 @@
2.11
3.14.0
- 3.5.2
+ 3.5.3
+ 0.8.0
3.11.2
3.3.1
3.3.1
@@ -294,6 +295,15 @@
org.apache.maven.plugins
maven-source-plugin
${maven-source-plugin.version}
+
+
+ attach-sources
+
+ jar
+
+ verify
+
+
org.apache.maven.plugins
@@ -516,14 +526,6 @@
org.apache.maven.plugins
maven-source-plugin
-
-
- attach-sources
-
- jar
-
-
-
org.apache.maven.plugins
@@ -545,14 +547,15 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- ${nexus-staging-maven-plugin.version}
+ org.sonatype.central
+ central-publishing-maven-plugin
+ ${central-publishing-maven-plugin.version}
true
- ossrh
- https://oss.sonatype.org/
- true
+ central
+ true
+ true
+ published
diff --git a/sample-operators/controller-namespace-deletion/pom.xml b/sample-operators/controller-namespace-deletion/pom.xml
index 9608b44db1..ee0d5bb3d2 100644
--- a/sample-operators/controller-namespace-deletion/pom.xml
+++ b/sample-operators/controller-namespace-deletion/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
sample-operators
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-controller-namespace-deletion
diff --git a/sample-operators/leader-election/pom.xml b/sample-operators/leader-election/pom.xml
index 74aab104f1..4b1088fa3b 100644
--- a/sample-operators/leader-election/pom.xml
+++ b/sample-operators/leader-election/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
sample-operators
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-leader-election
diff --git a/sample-operators/mysql-schema/pom.xml b/sample-operators/mysql-schema/pom.xml
index e726a2242a..92a5cb5c45 100644
--- a/sample-operators/mysql-schema/pom.xml
+++ b/sample-operators/mysql-schema/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
sample-operators
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-mysql-schema-operator
diff --git a/sample-operators/pom.xml b/sample-operators/pom.xml
index 450a6bc153..cbe10340fc 100644
--- a/sample-operators/pom.xml
+++ b/sample-operators/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
java-operator-sdk
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-operators
diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml
index 314e0ef96c..cd340c525d 100644
--- a/sample-operators/tomcat-operator/pom.xml
+++ b/sample-operators/tomcat-operator/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
sample-operators
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-tomcat-operator
diff --git a/sample-operators/webpage/pom.xml b/sample-operators/webpage/pom.xml
index 2266303adc..6ae09c835d 100644
--- a/sample-operators/webpage/pom.xml
+++ b/sample-operators/webpage/pom.xml
@@ -5,7 +5,7 @@
io.javaoperatorsdk
sample-operators
- 5.0.4-SNAPSHOT
+ 5.0.5-SNAPSHOT
sample-webpage-operator