Skip to content

Commit 3ab86cc

Browse files
build: raise to JDK11 and update plugins and dependencies
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
1 parent 0525d9c commit 3ab86cc

2 files changed

Lines changed: 27 additions & 25 deletions

File tree

build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ configurations {
8888
dependencies {
8989
testImplementation 'commons-io:commons-io:2.+'
9090
testImplementation 'org.apache.commons:commons-text:+'
91-
testImplementation 'org.mockito:mockito-core:4.+'
92-
testImplementation 'org.assertj:assertj-core:3.+'
93-
testImplementation 'org.hamcrest:hamcrest-core:2.+'
94-
testImplementation 'org.apache.commons:commons-lang3:3.+'
95-
testImplementation 'com.h2database:h2:2.+'
91+
testImplementation 'org.mockito:mockito-core:+'
92+
testImplementation 'org.assertj:assertj-core:+'
93+
testImplementation 'org.hamcrest:hamcrest-core:+'
94+
testImplementation 'org.apache.commons:commons-lang3:+'
95+
testImplementation 'com.h2database:h2:+'
9696

9797
// for JaCoCo Reports
98-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.+'
99-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.+'
98+
testImplementation 'org.junit.jupiter:junit-jupiter-api:+'
99+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:+'
100100
testImplementation 'org.junit.jupiter:junit-jupiter-params:+'
101101

102102
// https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter
@@ -122,16 +122,16 @@ java {
122122
withSourcesJar()
123123
withJavadocJar()
124124

125-
sourceCompatibility = '1.8'
126-
targetCompatibility = '1.8'
125+
sourceCompatibility = '11'
126+
targetCompatibility = '11'
127127
// needed for XML-Doclet to work (since Doclet changed again with Java 13)
128128
toolchain {
129129
languageVersion.set(JavaLanguageVersion.of(11))
130130
}
131131
}
132132

133133
compileJava {
134-
options.release = 8
134+
options.release = 11
135135
}
136136

137137
javadoc {

pom.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,50 +29,50 @@
2929
<dependency>
3030
<groupId>net.java.dev.javacc</groupId>
3131
<artifactId>javacc</artifactId>
32-
<version>7.0.13</version>
32+
<version>[7.0.13,)</version>
3333
<scope>test</scope>
3434
</dependency>
3535

3636
<dependency>
3737
<groupId>commons-io</groupId>
3838
<artifactId>commons-io</artifactId>
39-
<version>2.11.0</version>
39+
<version>[2.15.1,)</version>
4040
<scope>test</scope>
4141
</dependency>
4242
<dependency>
4343
<groupId>org.junit.jupiter</groupId>
4444
<artifactId>junit-jupiter</artifactId>
45-
<version>5.9.2</version>
45+
<version>[5.10.2,)</version>
4646
<scope>test</scope>
4747
</dependency>
4848
<dependency>
4949
<groupId>org.mockito</groupId>
5050
<artifactId>mockito-core</artifactId>
51-
<version>4.8.0</version>
51+
<version>[5.11.0,)</version>
5252
<scope>test</scope>
5353
</dependency>
5454
<dependency>
5555
<groupId>org.mockito</groupId>
5656
<artifactId>mockito-junit-jupiter</artifactId>
57-
<version>4.8.0</version>
57+
<version>[5.11.0,)</version>
5858
<scope>test</scope>
5959
</dependency>
6060
<dependency>
6161
<groupId>org.assertj</groupId>
6262
<artifactId>assertj-core</artifactId>
63-
<version>3.23.1</version>
63+
<version>[3.25.3,)</version>
6464
<scope>test</scope>
6565
</dependency>
6666
<dependency>
6767
<groupId>org.apache.commons</groupId>
6868
<artifactId>commons-lang3</artifactId>
69-
<version>3.12.0</version>
69+
<version>[3.14.0,)</version>
7070
<scope>test</scope>
7171
</dependency>
7272
<dependency>
7373
<groupId>com.h2database</groupId>
7474
<artifactId>h2</artifactId>
75-
<version>2.1.214</version>
75+
<version>[2.2.224,)</version>
7676
<scope>test</scope>
7777
</dependency>
7878

@@ -133,7 +133,7 @@
133133
<plugin>
134134
<groupId>org.apache.maven.plugins</groupId>
135135
<artifactId>maven-pmd-plugin</artifactId>
136-
<version>3.19.0</version>
136+
<version>3.21.2</version>
137137
<configuration>
138138
<rulesets>
139139
<!-- Custom local file system rule set -->
@@ -205,8 +205,8 @@
205205
<artifactId>maven-compiler-plugin</artifactId>
206206
<version>3.10.1</version>
207207
<configuration>
208-
<source>1.8</source>
209-
<target>1.8</target>
208+
<source>11</source>
209+
<target>11</target>
210210
<showWarnings>true</showWarnings>
211211
<encoding>${project.build.sourceEncoding}</encoding>
212212
<showDeprecation>true</showDeprecation>
@@ -335,6 +335,7 @@
335335
<plugin>
336336
<groupId>org.apache.maven.plugins</groupId>
337337
<artifactId>maven-jar-plugin</artifactId>
338+
<version>3.3.0</version>
338339
<configuration>
339340
<archive>
340341
<manifestEntries>
@@ -543,14 +544,14 @@
543544
<property>
544545
<name>!skipCheckSources</name>
545546
</property>
546-
<jdk>[1.8,)</jdk>
547+
<jdk>[11,)</jdk>
547548
</activation>
548549
<build>
549550
<plugins>
550551
<plugin>
551552
<groupId>org.apache.maven.plugins</groupId>
552553
<artifactId>maven-checkstyle-plugin</artifactId>
553-
<version>3.1.0</version>
554+
<version>3.3.1</version>
554555
<executions>
555556
<execution>
556557
<id>verify-style</id>
@@ -602,7 +603,7 @@
602603
<dependency>
603604
<groupId>com.puppycrawl.tools</groupId>
604605
<artifactId>checkstyle</artifactId>
605-
<version>8.29</version>
606+
<version>${checkStyleVersion}</version>
606607
</dependency>
607608
</dependencies>
608609
</plugin>
@@ -626,7 +627,8 @@
626627

627628
<properties>
628629
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
629-
<pmdVersion>6.53.0</pmdVersion>
630+
<pmdVersion>6.55.0</pmdVersion>
631+
<checkStyleVersion>10.14.0</checkStyleVersion>
630632
</properties>
631633

632634
<description>JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes.

0 commit comments

Comments
 (0)