Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WINDUP-3204] Migrate to jdk11 #588

Merged
merged 4 commits into from Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/pr_build_jdk11.yml
@@ -0,0 +1,24 @@
name: Windup PR builder for JDK11

on:
pull_request:
branches:
- master

jobs:

windup-rulesets-build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2.3.4
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
java-package: jdk
cache: 'maven'
- name: Build
run: mvn clean install


15 changes: 12 additions & 3 deletions pom.xml
Expand Up @@ -21,8 +21,8 @@
<windup.scm.url>http://github.com/windup/windup-rulesets</windup.scm.url>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<version.windup>5.2.2-SNAPSHOT</version.windup>
</properties>

Expand Down Expand Up @@ -92,7 +92,6 @@
<groupId>org.jboss.windup.graph</groupId>
<artifactId>windup-graph</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.windup.config</groupId>
Expand Down Expand Up @@ -170,6 +169,13 @@
<scope>test</scope>
</dependency>

<!-- Workaround for addon dependency issue - see WINDUP-3229 -->
<dependency>
<groupId>org.jboss.windup.graph</groupId>
<artifactId>windup-graph-impl</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -222,6 +228,9 @@
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<arguments>-Xms512m -Xmx4096m -XX:ReservedCodeCacheSize=128m</arguments>
</properties>
<build>
<plugins>
<plugin>
Expand Down
Expand Up @@ -251,6 +251,8 @@ public void visit(File ruleTestFile)
{
e.printStackTrace();
errors.put(ruleTestFile.toString(), e);
} finally {
factory.closeAll();
}
}
}
Expand Down