Repository navigation
Update Maven plugins #21
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
Changes from all commits
b385981
d6d81ab
9b6b2e2
eb4db72
b6963ad
a37e9ef
44f761c
6d1f3e3
86b7f55
02baec4
e61db38
9d0a853
05406c1
4079ba4
1071c16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,12 +3,6 @@ | |
|
|
||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>org.sonatype.oss</groupId> | ||
| <artifactId>oss-parent</artifactId> | ||
| <version>9</version> | ||
| </parent> | ||
|
|
||
| <groupId>org.flexdock</groupId> | ||
| <artifactId>flexdock</artifactId> | ||
| <version>1.3</version> | ||
|
|
@@ -57,62 +51,54 @@ | |
| </pluginRepositories> | ||
|
|
||
| <properties> | ||
| <javaVersion>1.8</javaVersion> | ||
| <javaVersion>8</javaVersion> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <!-- severity of checkstyle Javadoc checks (overridden in modules that do not need Javadoc) --> | ||
| <checkstyle.javadoc.severity>warning</checkstyle.javadoc.severity> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>net.sf.squirrel-sql.thirdparty-non-maven</groupId> | ||
| <artifactId>skinlf</artifactId> | ||
| <version>6.7</version> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <pluginManagement> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-site-plugin</artifactId> | ||
| <version>2.2</version> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>3.16.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-scm-plugin</artifactId> | ||
| <version>1.5</version> | ||
| <artifactId>maven-enforcer-plugin</artifactId> | ||
| <version>3.7.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>2.3.2</version> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <version>3.5.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <version>2.5</version> | ||
| <artifactId>maven-surefire-plugin</artifactId> | ||
| <version>3.6.1</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-release-plugin</artifactId> | ||
| <version>2.1</version> | ||
| <artifactId>maven-clean-plugin</artifactId> | ||
| <version>3.5.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>wagon-maven-plugin</artifactId> | ||
| <version>1.0-beta-3</version> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-install-plugin</artifactId> | ||
| <version>3.2.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.scm</groupId> | ||
| <artifactId>maven-scm-provider-svnexe</artifactId> | ||
| <version>1.4</version> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-deploy-plugin</artifactId> | ||
| <version>3.2.0</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-jar-plugin</artifactId> | ||
| <version>2.3.1</version> | ||
| <version>3.5.1</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
|
|
@@ -122,20 +108,47 @@ | |
| <dependency> | ||
| <groupId>com.puppycrawl.tools</groupId> | ||
| <artifactId>checkstyle</artifactId> | ||
| <version>14.3.0</version> | ||
| <version>14.4.0</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </plugin> | ||
| </plugins> | ||
| </pluginManagement> | ||
| <plugins> | ||
| <plugin> | ||
| <!-- require JDK and Maven versions needed by the build --> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-enforcer-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <id>enforce-build-environment</id> | ||
| <goals> | ||
| <goal>enforce</goal> | ||
| </goals> | ||
| <configuration> | ||
| <rules> | ||
| <requireMavenVersion> | ||
| <version>[3.6.3,)</version> | ||
| </requireMavenVersion> | ||
| <requireJavaVersion> | ||
| <!-- the checkstyle engine requires JDK 21 --> | ||
| <version>[21,)</version> | ||
| </requireJavaVersion> | ||
| </rules> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <!-- enforce java version --> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <source>${javaVersion}</source> | ||
| <target>${javaVersion}</target> | ||
| <release>${javaVersion}</release> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will try to implement it in a more robust way using |
||
| <compilerArgs> | ||
| <!-- Java 8 is obsolete for newer JDKs, but still the supported target --> | ||
| <arg>-Xlint:-options</arg> | ||
| </compilerArgs> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
|
|
@@ -155,8 +168,15 @@ | |
| <plugin> | ||
| <groupId>org.apache.felix</groupId> | ||
| <artifactId>maven-bundle-plugin</artifactId> | ||
| <version>2.3.7</version> | ||
| <version>6.2.0</version> | ||
| <extensions>true</extensions> | ||
| <configuration> | ||
| <instructions> | ||
| <!-- keep the manifests free of java.* imports and execution environment requirements --> | ||
| <_noimportjava>true</_noimportjava> | ||
| <_noee>true</_noee> | ||
| </instructions> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>bundle-manifest</id> | ||
|
|
@@ -170,7 +190,7 @@ | |
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-source-plugin</artifactId> | ||
| <version>3.0.1</version> | ||
| <version>3.4.0</version> | ||
| <executions> | ||
| <execution> | ||
| <id>attach-sources</id> | ||
|
|
@@ -204,65 +224,4 @@ | |
| </plugins> | ||
| </build> | ||
|
|
||
| <reporting> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-project-info-reports-plugin</artifactId> | ||
| <version>2.2</version> | ||
| <reportSets> | ||
| <reportSet> | ||
| <reports> | ||
| <report>index</report> | ||
| <report>summary</report> | ||
| <report>dependencies</report> | ||
| <report>project-team</report> | ||
| <report>license</report> | ||
| <report>issue-tracking</report> | ||
| <report>mailing-list</report> | ||
| <report>scm</report> | ||
| </reports> | ||
| </reportSet> | ||
| </reportSets> | ||
| <configuration> | ||
| <dependencyLocationsEnabled>false</dependencyLocationsEnabled> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-jxr-plugin</artifactId> | ||
| <version>2.2</version> | ||
| <configuration> | ||
| <linkJavadoc>true</linkJavadoc> | ||
| <!-- <javadocDir>/path/to/javadocs</javadocDir> --> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-javadoc-plugin</artifactId> | ||
| <version>2.7</version> | ||
| <configuration> | ||
| <quiet>true</quiet> | ||
| <verbose>false</verbose> | ||
| <links> | ||
| <link>https://docs.oracle.com/javase/8/docs/api/</link> | ||
| <show>public</show> | ||
| </links> | ||
| </configuration> | ||
| <reportSets> | ||
| <reportSet> | ||
| <reports> | ||
| <report>javadoc</report> | ||
| </reports> | ||
| </reportSet> | ||
| </reportSets> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>findbugs-maven-plugin</artifactId> | ||
| <version>2.3.1</version> | ||
| </plugin> | ||
| </plugins> | ||
| </reporting> | ||
|
|
||
| </project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no version here, maven will warn about it
could you please pin it in pluginManagement like the others? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the version tag for maven-enforce-plugin.