Skip to content

Commit

Permalink
Update to jdk17 (#122)
Browse files Browse the repository at this point in the history
* Fix MavenInvokerTest

* Add explicit encoding for the failsafe-plugin to avoid log warnings

* Edit description

* Update to JDK17 and prepare for new release

* Fix IT
  • Loading branch information
cesarsotovalero authored Apr 1, 2022
1 parent c238589 commit 3e15d36
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 27 deletions.
4 changes: 2 additions & 2 deletions depclean-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<parent>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<!-- Coordinates -->
<artifactId>depclean-core</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<packaging>jar</packaging>
<description>Core library of DepClean</description>
<name>depclean-core</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ void shouldRegisterClasses() {
final ProjectContext context = createContext();
final ActualUsedClasses actualUsedClasses = new ActualUsedClasses(context);
actualUsedClasses.registerClasses(of(COMMONS_IO_CLASS));

assertThat(actualUsedClasses.getRegisteredClasses()).containsExactly(COMMONS_IO_CLASS);
}

Expand All @@ -22,8 +21,6 @@ void shouldNotRegisterUnknownClasses() {
final ProjectContext context = createContext();
final ActualUsedClasses actualUsedClasses = new ActualUsedClasses(context);
actualUsedClasses.registerClasses(of(UNKNOWN_CLASS));

assertThat(actualUsedClasses.getRegisteredClasses()).isEmpty();
}

}
12 changes: 7 additions & 5 deletions depclean-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<!-- Coordinates -->
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<packaging>maven-plugin</packaging>
<name>depclean-maven-plugin</name>

Expand All @@ -20,17 +20,20 @@
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<checkstyle.config.location>../checkstyle.xml</checkstyle.config.location>
<linkXRef>false</linkXRef>
<!-- Encoding for the failsafe-plugin -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<description>DepClean is a plugin for automatically remove unused dependencies in Maven projects</description>
<description>DepClean is automatically removes unused dependencies in Maven projects</description>

<!-- Build options -->
<dependencies>
<!-- Project module -->
<dependency>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-core</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
</dependency>
<!--Maven tools for plugin construction-->
<dependency>
Expand Down Expand Up @@ -218,5 +221,4 @@
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class DepCleanMojoIT {
@MavenTest
@DisplayName("Test that DepClean runs in an empty Maven project")
void empty_project(MavenExecutionResult result) {
assertThat(result).isFailure(); // should pass
assertThat(result).isSuccessful(); // should pass
}

@MavenTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<mapstruct.version>1.4.2.Final</mapstruct.version>
</properties>

Expand Down Expand Up @@ -72,7 +71,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>${project.version}</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>${project.version}</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<plugin>
<groupId>se.kth.castor</groupId>
<artifactId>depclean-maven-plugin</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<executions>
<execution>
<goals>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Coordinates -->
<groupId>se.kth.castor</groupId>
<artifactId>depclean-parent-pom</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.0.2</version>
<packaging>pom</packaging>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -18,13 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- plugins -->
<compiler.release>8</compiler.release>
<javadoc.source>8</javadoc.source>
<compiler.release>17</compiler.release>
<javadoc.source>17</javadoc.source>
<javadoc.plugin.version>3.2.0</javadoc.plugin.version>
<jacoco.plugin.version>0.8.6</jacoco.plugin.version>
<coveralls.plugin.version>4.3.0</coveralls.plugin.version>
<surefire.plugin.version>3.0.0-M3</surefire.plugin.version>
<compiler.plugin.version>3.8.1</compiler.plugin.version>
<compiler.plugin.version>3.10.1</compiler.plugin.version>
<!-- dependencies -->
<lombok.version>1.18.22</lombok.version>
<slf4j-api.version>2.0.0-alpha1</slf4j-api.version>
Expand Down

0 comments on commit 3e15d36

Please sign in to comment.