Skip to content

Commit f66209b

Browse files
chore(ossrh): migrate to maven central portal (#132)
The OSSRH service reached end-of-life on June 30th, 2025. Related to [BPA-93](https://bonitasoft.atlassian.net/browse/BPA-93) [BPA-93]: https://bonitasoft.atlassian.net/browse/BPA-93?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent fe988a7 commit f66209b

File tree

6 files changed

+57
-63
lines changed

6 files changed

+57
-63
lines changed

.github/workflows/build-pr.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88

99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Cache SonarCloud packages
@@ -19,22 +19,23 @@ jobs:
1919
- name: Setup Java
2020
uses: actions/setup-java@v4
2121
with:
22-
distribution: 'temurin'
22+
distribution: temurin
2323
java-version: 17
24-
cache: 'maven'
25-
- name: Build with Sonarcloud
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
28-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29-
if: ${{ env.SONAR_TOKEN != '' }}
30-
run: ./mvnw -B -ntp clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}
31-
- name: Build
24+
cache: maven
25+
26+
- name: Extract secrets from Keeper
27+
uses: Keeper-Security/ksm-action@v1
28+
with:
29+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
30+
secrets: |
31+
${{ vars.KEEPER_SONARCLOUD_RECORD_ID }}/field/password > env:SONAR_TOKEN
32+
33+
- name: Build and test
3234
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
34-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
35-
if: ${{ env.SONAR_TOKEN == '' }}
36-
run: ./mvnw -B -ntp clean verify
37-
35+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
36+
SONAR_TOKEN: ${{env.SONAR_TOKEN}}
37+
run: ./mvnw -B clean verify sonar:sonar
38+
3839
- run: mkdir staging && cp target/*.zip staging
3940
- name: Upload artifact
4041
uses: actions/upload-artifact@v4

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,27 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
13+
1414
- name: Setup Java
1515
uses: actions/setup-java@v4
1616
with:
1717
java-version: 17
18-
distribution: 'temurin'
18+
distribution: temurin
1919
cache: maven
2020

21+
- name: Extract secrets from Keeper
22+
uses: Keeper-Security/ksm-action@v1
23+
with:
24+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
25+
secrets: |
26+
${{ vars.KEEPER_SONARCLOUD_RECORD_ID }}/field/password > env:SONAR_TOKEN
27+
2128
- name: Build and test
2229
env:
2330
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
24-
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
25-
run: ./mvnw -B clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}
31+
SONAR_TOKEN: ${{env.SONAR_TOKEN}}
32+
run: ./mvnw -B clean verify sonar:sonar
33+
2634
- run: mkdir staging && cp target/*.zip staging
2735
- name: Upload artifact
2836
uses: actions/upload-artifact@v4

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-24.04
2727
permissions:
2828
actions: read
2929
contents: read

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
stale:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- uses: actions/stale@v9
1212
with:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ __Clone__ or __fork__ this repository, then at the root of the project run:
1818
In order to create a new release:
1919
- On the release branch, make sure to update the pom version (remove the -SNAPSHOT)
2020
- Run the action 'Create release', set the version to release as parameter
21-
- When the action is completed, do not forget to manage the release on the nexus (close and release)
2221
- Update the `master` with the next SNAPSHOT version.
2322

2423
## Contributing

pom.xml

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -32,115 +32,115 @@
3232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3333
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3434
<maven.build.timestamp.format>yyyy.MM.dd-hh.mm</maven.build.timestamp.format>
35-
35+
3636
<!-- Bonita -->
3737
<bonita.engine.version>7.13.0</bonita.engine.version>
38-
38+
3939
<!--Connector -->
4040
<jdbc-generic.def.id>database-jdbc</jdbc-generic.def.id>
4141
<jdbc-generic.def.version>1.0.0</jdbc-generic.def.version>
4242
<jdbc-generic.impl.id>${jdbc-generic.def.id}-impl</jdbc-generic.impl.id>
4343
<jdbc-generic.impl.version>${project.version}</jdbc-generic.impl.version>
4444
<jdbc-generic.main-class>org.bonitasoft.connectors.database.jdbc.JdbcConnector</jdbc-generic.main-class>
45-
45+
4646
<access.def.id>database-access</access.def.id>
4747
<access.def.version>${jdbc-generic.def.version}</access.def.version>
4848
<access.impl.id>${access.def.id}-impl</access.impl.id>
4949
<access.impl.version>${project.version}</access.impl.version>
50-
50+
5151
<as400.def.id>database-as400</as400.def.id>
5252
<as400.def.version>${jdbc-generic.def.version}</as400.def.version>
5353
<as400.impl.id>${as400.def.id}-impl</as400.impl.id>
5454
<as400.impl.version>${project.version}</as400.impl.version>
55-
55+
5656
<datasource.def.id>database-datasource</datasource.def.id>
5757
<datasource.def.version>1.0.0</datasource.def.version>
5858
<datasource.impl.id>${datasource.def.id}-impl</datasource.impl.id>
5959
<datasource.impl.version>${project.version}</datasource.impl.version>
6060
<datasource.main-class>org.bonitasoft.connectors.database.datasource.DatasourceConnector</datasource.main-class>
61-
61+
6262
<db2.def.id>database-db2</db2.def.id>
6363
<db2.def.version>${jdbc-generic.def.version}</db2.def.version>
6464
<db2.impl.id>${db2.def.id}-impl</db2.impl.id>
6565
<db2.impl.version>${project.version}</db2.impl.version>
66-
66+
6767
<h2.def.id>database-h2</h2.def.id>
6868
<h2.def.version>${jdbc-generic.def.version}</h2.def.version>
6969
<h2.impl.id>${h2.def.id}-impl</h2.impl.id>
7070
<h2.impl.version>${project.version}</h2.impl.version>
71-
71+
7272
<hsqldb.def.id>database-hsqldb</hsqldb.def.id>
7373
<hsqldb.def.version>${jdbc-generic.def.version}</hsqldb.def.version>
7474
<hsqldb.impl.id>${hsqldb.def.id}-impl</hsqldb.impl.id>
7575
<hsqldb.impl.version>${project.version}</hsqldb.impl.version>
76-
76+
7777
<informix.def.id>database-informix</informix.def.id>
7878
<informix.def.version>${jdbc-generic.def.version}</informix.def.version>
7979
<informix.impl.id>${informix.def.id}-impl</informix.impl.id>
8080
<informix.impl.version>${project.version}</informix.impl.version>
81-
81+
8282
<ingres.def.id>database-ingres</ingres.def.id>
8383
<ingres.def.version>${jdbc-generic.def.version}</ingres.def.version>
8484
<ingres.impl.id>${ingres.def.id}-impl</ingres.impl.id>
8585
<ingres.impl.version>${project.version}</ingres.impl.version>
86-
86+
8787
<mssqlserver.def.id>database-mssqlserver</mssqlserver.def.id>
8888
<mssqlserver.def.version>1.2.1</mssqlserver.def.version>
8989
<mssqlserver.impl.id>${mssqlserver.def.id}-impl</mssqlserver.impl.id>
9090
<mssqlserver.impl.version>${project.version}</mssqlserver.impl.version>
91-
91+
9292
<mysql.def.id>database-mysql</mysql.def.id>
9393
<mysql.def.version>${jdbc-generic.def.version}</mysql.def.version>
9494
<mysql.impl.id>${mysql.def.id}-impl</mysql.impl.id>
9595
<mysql.impl.version>${project.version}</mysql.impl.version>
96-
96+
9797
<oracle10g.def.id>database-oracle10g</oracle10g.def.id>
9898
<oracle10g.def.version>${jdbc-generic.def.version}</oracle10g.def.version>
9999
<oracle10g.impl.id>${oracle10g.def.id}-impl</oracle10g.impl.id>
100100
<oracle10g.impl.version>${project.version}</oracle10g.impl.version>
101-
101+
102102
<oracle11g.def.id>database-oracle11g</oracle11g.def.id>
103103
<oracle11g.def.version>${jdbc-generic.def.version}</oracle11g.def.version>
104104
<oracle11g.impl.id>${oracle11g.def.id}-impl</oracle11g.impl.id>
105105
<oracle11g.impl.version>${project.version}</oracle11g.impl.version>
106-
106+
107107
<postgresql84.def.id>database-postgresql84</postgresql84.def.id>
108108
<postgresql84.def.version>${jdbc-generic.def.version}</postgresql84.def.version>
109109
<postgresql84.impl.id>${postgresql84.def.id}-impl</postgresql84.impl.id>
110110
<postgresql84.impl.version>${project.version}</postgresql84.impl.version>
111-
111+
112112
<postgresql92.def.id>database-postgresql92</postgresql92.def.id>
113113
<postgresql92.def.version>${jdbc-generic.def.version}</postgresql92.def.version>
114114
<postgresql92.impl.id>${postgresql92.def.id}-impl</postgresql92.impl.id>
115115
<postgresql92.impl.version>${project.version}</postgresql92.impl.version>
116-
116+
117117
<sybase.def.id>database-sybase</sybase.def.id>
118118
<sybase.def.version>${jdbc-generic.def.version}</sybase.def.version>
119119
<sybase.impl.id>${sybase.def.id}-impl</sybase.impl.id>
120120
<sybase.impl.version>${project.version}</sybase.impl.version>
121-
121+
122122
<teradata.def.id>database-teradata</teradata.def.id>
123123
<teradata.def.version>${jdbc-generic.def.version}</teradata.def.version>
124124
<teradata.impl.id>${teradata.def.id}-impl</teradata.impl.id>
125125
<teradata.impl.version>${project.version}</teradata.impl.version>
126-
126+
127127
<!-- Test -->
128128
<junit-jupiter-engine.version>5.10.1</junit-jupiter-engine.version>
129129
<assertj-core.version>3.24.2</assertj-core.version>
130130
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
131131
<sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version>
132132
<hsqldb.version>2.7.2</hsqldb.version>
133-
133+
134134
<tomcat-catalina.version>9.0.98</tomcat-catalina.version>
135-
135+
136136
<!-- Maven plugins -->
137137
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
138138
<maven.compiler.release>${java.version}</maven.compiler.release>
139139
<maven-assembly-plugin.version>3.6.0</maven-assembly-plugin.version>
140140
<groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version>
141141
<groovy.version>3.0.19</groovy.version>
142142
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
143-
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
143+
<central-maven-plugin>0.8.0</central-maven-plugin>
144144
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
145145
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
146146
<license-maven-plugin.version>4.3</license-maven-plugin.version>
@@ -159,7 +159,7 @@
159159
<version>${bonita.engine.version}</version>
160160
<scope>provided</scope>
161161
</dependency>
162-
162+
163163
<!-- Tests -->
164164
<dependency>
165165
<groupId>org.junit.jupiter</groupId>
@@ -292,14 +292,12 @@
292292
<version>${sonar-maven-plugin.version}</version>
293293
</plugin>
294294
<plugin>
295-
<groupId>org.sonatype.plugins</groupId>
296-
<artifactId>nexus-staging-maven-plugin</artifactId>
297-
<version>${nexus-staging-maven-plugin.version}</version>
295+
<groupId>org.sonatype.central</groupId>
296+
<artifactId>central-publishing-maven-plugin</artifactId>
297+
<version>${central-maven-plugin.version}</version>
298298
<extensions>true</extensions>
299299
<configuration>
300-
<serverId>ossrh</serverId>
301-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
302-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
300+
<autoPublish>true</autoPublish>
303301
</configuration>
304302
</plugin>
305303
</plugins>
@@ -404,18 +402,6 @@
404402
</profile>
405403
</profiles>
406404
407-
<distributionManagement>
408-
<!-- Central Repository -->
409-
<snapshotRepository>
410-
<id>ossrh</id>
411-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
412-
</snapshotRepository>
413-
<repository>
414-
<id>ossrh</id>
415-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
416-
</repository>
417-
</distributionManagement>
418-
419405
<scm>
420406
<developerConnection>scm:git:git@github.com:bonitasoft/bonita-connector-database.git</developerConnection>
421407
<connection>scm:git:git@github.com:bonitasoft/bonita-connector-database.git</connection>

0 commit comments

Comments
 (0)