Skip to content

Commit

Permalink
Use Java 17 to build the plugin. (#294)
Browse files Browse the repository at this point in the history
* Use Java 17 to build the plugin.

Part of [request #30006](https://tuleap.net/plugins/tracker/?aid=30006) Build Tuleap Authentication with Java 17

No functional change expected

* CI tools should build the plugin with java 17 too

* bump to java 17 the Archive Plugin Artifact plugin

* revert back properties files

Co-authored-by: Clarck Robinson <[email protected]>
Co-authored-by: Martin Goyot <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2022
1 parent f2651d9 commit 189a014
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Archive_Plugin_Artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '8'
java-version: '17'
- name: Build
run: mvn -Dmaven.test.skip=true -Dspotbugs.skip=true --batch-mode --show-version clean install
- name: Archive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '8'
java-version: '17'
- name: Build
run: mvn -Pjacoco clean verify --batch-mode --show-version
- name: Upload coverage to Codecov
Expand Down
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
buildPlugin()
buildPlugin(
useContainerAgent: true,
configurations: [
[platform: 'linux', jdk: 17],
[platform: 'windows', jdk: 17],
])
9 changes: 4 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.40</version>
<version>4.53</version>
<relativePath />
</parent>
<groupId>io.jenkins.plugins</groupId>
Expand All @@ -15,8 +15,7 @@
<revision>1.1.19</revision>
<changelist>-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/tuleap-oauth-plugin</gitHubRepo>
<jenkins.version>2.289.3</jenkins.version>
<java.level>8</java.level>
<jenkins.version>2.361.4</jenkins.version>
<hpi.compatibleSinceVersion>1.0.0</hpi.compatibleSinceVersion>
</properties>

Expand Down Expand Up @@ -69,8 +68,8 @@
</dependency>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.289.x</artifactId>
<version>1500.ve4d05cd32975</version>
<artifactId>bom-2.361.x</artifactId>
<version>1742.vb_70478c1b_25f</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down

0 comments on commit 189a014

Please sign in to comment.