Skip to content

Commit

Permalink
Merge pull request #46 from MarkEWaite/test-with-java-21
Browse files Browse the repository at this point in the history
Require Java 11 and Jenkins 2.387.3 or newer, test with Java 21
  • Loading branch information
marek-parfianowicz authored Oct 6, 2023
2 parents 55e3018 + 7ae3afe commit cbf5a63
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/A-test-master.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: A quick test on JDK8
name: A Test master on JDK 17

on:
push:
Expand All @@ -13,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 1.8
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 8.0
java-version: 17.0
distribution: temurin
cache: maven

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- Upgrade to OpenClover 4.5.0 feature release. This version brings support for annotations on java types
and experimental support for Java 10-17. See the [OpenClover 4.5.0 release notes](http://openclover.org/doc/openclover-4.5.0-release-notes.html)
for more details.
- Require Java 11 or Java 17.
Refer to the [blog post](https://www.jenkins.io/blog/2022/06/28/require-java-11/) for more details about Java 11 and Java 17 support.
- Require Jenkins 2.387.3 or newer.

## Version 4.13.0 (March 3, 2022)

Expand Down
12 changes: 11 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
buildPlugin()
/*
See the documentation for more options:
https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(
forkCount: '1C', // Run 1 test process per core
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
configurations: [
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])
18 changes: 4 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.33</version>
<version>4.74</version>
</parent>
<artifactId>clover</artifactId>
<packaging>hpi</packaging>
Expand Down Expand Up @@ -34,17 +34,16 @@
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/clover-plugin</gitHubRepo>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.level>8</java.level>
<jenkins.version>2.289.3</jenkins.version>
<jenkins.version>2.387.3</jenkins.version>
<clover.version>4.5.0</clover.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.289.x</artifactId>
<version>1500.ve4d05cd32975</version>
<artifactId>bom-2.387.x</artifactId>
<version>2483.v3b_22f030990a_</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -78,15 +77,6 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1C</forkCount>
<reuseForks>true</reuseForks>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.util.concurrent.TimeUnit;

import static com.gargoylesoftware.htmlunit.WebAssert.assertTextPresent;
import static org.htmlunit.WebAssert.assertTextPresent;
import static org.junit.Assert.assertNotNull;

public class CloverBuildActionTest {
Expand Down

0 comments on commit cbf5a63

Please sign in to comment.