[JAVA-21185] Clean up

This commit is contained in:
panos-kakos
2023-05-28 12:57:00 +03:00
parent 5b62cd183d
commit 13faeab481
6 changed files with 34 additions and 19 deletions

View File

@@ -3,10 +3,16 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>compiler-plugin-java-9</artifactId> <artifactId>compiler-plugin-java-9</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-modules</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

View File

@@ -14,10 +14,6 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<properties>
<surefire-version>2.22.2</surefire-version>
</properties>
<modules> <modules>
<module>dummy-surefire-junit47</module> <module>dummy-surefire-junit47</module>
<module>core-java-exclusions</module> <module>core-java-exclusions</module>
@@ -29,10 +25,10 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version> <version>${maven-compiler-plugin.version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${maven-compiler-plugin.source.version}</source>
<target>1.8</target> <target>${maven-compiler-plugin.tagert.version}</target>
<compilerArgs> <compilerArgs>
<arg>-parameters</arg> <arg>-parameters</arg>
</compilerArgs> </compilerArgs>
@@ -62,9 +58,16 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.13</version> <version>${junit.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<properties>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<maven-compiler-plugin.source.version>1.8</maven-compiler-plugin.source.version>
<maven-compiler-plugin.tagert.version>1.8</maven-compiler-plugin.tagert.version>
<junit.version>4.13</junit.version>
</properties>
</project> </project>

View File

@@ -66,7 +66,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version> <version>${maven-source-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
@@ -106,6 +106,7 @@
<github.global.server>github</github.global.server> <github.global.server>github</github.global.server>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
</properties> </properties>
</project> </project>

View File

@@ -12,7 +12,7 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version> <version>${build-helper-maven-plugin}</version>
<executions> <executions>
<execution> <execution>
<id>add-source</id> <id>add-source</id>
@@ -35,6 +35,7 @@
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<build-helper-maven-plugin>3.2.0</build-helper-maven-plugin>
</properties> </properties>
</project> </project>

View File

@@ -15,12 +15,12 @@
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-classifier-example-provider</artifactId> <artifactId>maven-classifier-example-provider</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>${maven-classifier-example-provider.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-classifier-example-provider</artifactId> <artifactId>maven-classifier-example-provider</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>${maven-classifier-example-provider.version}</version>
<classifier>arbitrary</classifier> <classifier>arbitrary</classifier>
</dependency> </dependency>
<!-- For example purpose not building as it requires both JDK 8 and 11 executables --> <!-- For example purpose not building as it requires both JDK 8 and 11 executables -->
@@ -34,13 +34,13 @@
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-classifier-example-provider</artifactId> <artifactId>maven-classifier-example-provider</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>${maven-classifier-example-provider.version}</version>
<classifier>sources</classifier> <classifier>sources</classifier>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-classifier-example-provider</artifactId> <artifactId>maven-classifier-example-provider</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>${maven-classifier-example-provider.version}</version>
<classifier>tests</classifier> <classifier>tests</classifier>
</dependency> </dependency>
</dependencies> </dependencies>
@@ -48,6 +48,7 @@
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<maven-classifier-example-provider.version>0.0.1-SNAPSHOT</maven-classifier-example-provider.version>
</properties> </properties>
</project> </project>

View File

@@ -17,7 +17,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version> <version>${maven-compiler-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>JDK 8</id> <id>JDK 8</id>
@@ -52,7 +52,6 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<executions> <executions>
<execution> <execution>
<id>Arbitrary</id> <id>Arbitrary</id>
@@ -87,7 +86,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version> <version>${maven-source-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
@@ -101,7 +100,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.2</version> <version>${maven-javadoc-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>attach-javadocs</id> <id>attach-javadocs</id>
@@ -117,6 +116,10 @@
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
<
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<!-- <jdk.11.executable.path></jdk.11.executable.path> --> <!-- <jdk.11.executable.path></jdk.11.executable.path> -->
</properties> </properties>