Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 12, 2023
2 parents 3a337eb + b0a5b20 commit 41c6b6c
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [8, 11, 17]
java: [11, 17]
os: [ubuntu-latest]
distribution: [temurin]

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: 'maven'
cache: maven

- name: Build and verify
run: ./mvnw -s ./.maven-settings.xml -Pcontinuous-integration -B -U clean verify
10 changes: 5 additions & 5 deletions .github/workflows/maven-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deploy snapshots to Sonatpe OSS repository and deploy site to GitHub Pages
# Deploy snapshots to Sonatype OSS repository and deploy site to GitHub Pages

name: Deploy

Expand All @@ -15,19 +15,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Configure GIT
run: |
git config --global user.email "${{ secrets.GH_SITE_DEPLOY_EMAIL }}"
git config --global user.name "${{ secrets.GH_SITE_DEPLOY_NAME }}"
- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: 'maven'
java-version: 11
cache: maven

- name: Build, verify, deploy, generate site
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
body: 'Changes: https://github.com/wcm-io/io.wcm.maven.global-parent/blob/develop/changes.xml'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Global parent for Maven artifact hierarchy.

Documentation: https://wcm.io/tooling/maven/global-parent.html<br/>
Issues: https://wcm-io.atlassian.net/browse/WTOOL<br/>
Issues: https://github.com/wcm-io/io.wcm.maven.global-parent/issues<br/>
Wiki: https://wcm-io.atlassian.net/wiki/<br/>
Continuous Integration: https://github.com/wcm-io/io.wcm.maven.global-parent/actions<br/>
Commercial support: https://wcm.io/commercial-support.html
12 changes: 12 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="50" date="2023-01-12">
<action type="update" dev="sseifert"><![CDATA[
<b>Minimum Java Version supported is Java 11. Java 8 is no longer supported.</b>
]]></action>
<action type="update" dev="sseifert">
Update plugins and dependencies to latest versions.
</action>
<action type="update" dev="sseifert">
Enforce that all local dependencies have an explicit scope set.
</action>
</release>

<release version="48" date="2022-12-15">
<action type="update" dev="sseifert">
Update plugins and dependencies to latest versions.
Expand Down
62 changes: 46 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>io.wcm.maven</groupId>
<artifactId>io.wcm.maven.global-parent</artifactId>
<version>48</version>
<version>50</version>
<packaging>pom</packaging>

<name>io.wcm.maven.global-parent</name>
Expand Down Expand Up @@ -72,11 +72,10 @@
<integrationtests.skip>${maven.test.skip}</integrationtests.skip>

<!-- Java Version to build against (can be overridden by inheriting poms) -->
<!-- Use "1.8" for Java 8, and "11", "17" ... for Java Versions >= 9 -->
<java.version>1.8</java.version>
<!-- Java 11 is the minimum version, Java 8 is no longer supported -->
<java.version>11</java.version>
<build.compiler.source>${java.version}</build.compiler.source>
<build.compiler.target>${java.version}</build.compiler.target>
<!-- If java.version is set to "1.8", set this variable to "8" -->
<build.compiler.release>${build.compiler.target}</build.compiler.release>

<!-- pmd needs this as a global property, even in mvn 3 - may be fixed some day -->
Expand All @@ -93,13 +92,13 @@
<distribution.releaseRepositoryUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2/</distribution.releaseRepositoryUrl>

<!-- Plugin version -->
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
<maven-surefire-plugin.version>3.0.0-M8</maven-surefire-plugin.version>
<maven-release-plugin.version>3.0.0-M7</maven-release-plugin.version>
<spotbugs-plugin.version>4.7.3.0</spotbugs-plugin.version>
<spotbugs-findsecbugs-plugin.version>1.12.0</spotbugs-findsecbugs-plugin.version>
<pmd.version>6.52.0</pmd.version>
<pmd.version>6.53.0</pmd.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<versions-maven-plugin.version>2.13.0</versions-maven-plugin.version>
<versions-maven-plugin.version>2.14.2</versions-maven-plugin.version>

<!-- Set to 'enabled' to activate org.eclipse.jdt.core.compiler.annotation.nullanalysis feature in eclipse settings -->
<eclipse.settings.nullanalysis>disabled</eclipse.settings.nullanalysis>
Expand All @@ -120,7 +119,7 @@
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.1.0</version>
<version>24.0.0</version>
</dependency>

<!--
Expand Down Expand Up @@ -165,7 +164,7 @@
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>3.5.2</version>
<version>3.5.3</version>
</extension>

</extensions>
Expand Down Expand Up @@ -258,6 +257,19 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-default-java-min</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[11,]</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-default</id>
<goals>
Expand Down Expand Up @@ -348,6 +360,18 @@
<fail>false</fail>
</configuration>
</execution>
<execution>
<!-- all local dependencies must have an explicit scope set, see https://github.com/apache/sling-maven-enforcer-rules -->
<id>enforce-explicit-scope</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireExplicitDependencyScope implementation="org.apache.sling.maven.enforcer.RequireExplicitDependencyScope" />
</rules>
</configuration>
</execution>
</executions>
</plugin>

Expand Down Expand Up @@ -429,7 +453,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -530,6 +554,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>maven-enforcer-rules</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
</plugin>

<plugin>
Expand Down Expand Up @@ -578,7 +609,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<configuration>
<configLocation>global-build-tools/checkstyle.xml</configLocation>
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
Expand All @@ -592,16 +623,15 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<!-- Stick with version 9.x because since 10.x Java 11 is mandatory minimum requirement -->
<version>9.3</version>
<version>10.6.0</version>
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.19.0</version>
<version>3.20.0</version>
<configuration>
<targetJdk>${java.version}</targetJdk>
<format>xml</format>
Expand Down Expand Up @@ -638,7 +668,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.1</version>
<version>3.4.2</version>
</plugin>

<plugin>
Expand Down Expand Up @@ -720,7 +750,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.3.0</version>
<version>3.4.0</version>
</plugin>

<plugin>
Expand Down

0 comments on commit 41c6b6c

Please sign in to comment.