Skip to content
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

Update parent-pom, run with Java 8, ci build on 2.0.0-X branch #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# GitHub Dependabot configuration file

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies for maven
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"

30 changes: 30 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Java Build, Test

on:
push:
branches: [ "2.0.0-X" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that 2.0.0-X was renamed this should be "main"

pull_request:
branches: [ "2.0.0-X" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First time I see this, any preference over using the standard @v4?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the version on its commit hash. @4 is Always the latest of 4
Makes a reproducable build.
Is recommend from some open source Security observers.

Dependabot can handle the Updates also.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, fine by me. Feel free to have a look at the rest of the comments and we can get this merged 👍

- name: Set up JDK 21
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B verify --file pom.xml
- name: Upload Test Reports
if: always()
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: Test-reports
path: |
**/test-reports/*/TEST-*.xml
11 changes: 0 additions & 11 deletions ant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>

</plugins>
</build>

Expand Down
6 changes: 1 addition & 5 deletions build-resources/src/main/resources/code-style/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

<module name="TreeWalker">

<property name="cacheFile" value="${checkstyle.cache.file}"/>

<!-- Checks for imports -->
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
Expand All @@ -37,9 +35,7 @@
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="IllegalInstantiation"/>
<module name="RedundantThrows">
<property name="allowUnchecked" value="true"/>
</module>
<module name="RedundantModifier"/>

<!-- Miscellaneous other checks. -->
<module name="UpperEll"/>
Expand Down
8 changes: 0 additions & 8 deletions gen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
</configuration>
</plugin>

<plugin>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-metadata-parser</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions impl-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@
<build>
<plugins>

<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
</configuration>
</plugin>

<!-- Export test JAR for use in other modules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
15 changes: 0 additions & 15 deletions impl-javaee-prototype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,4 @@

</dependencies>

<build>
<plugins>
<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
</build>
</project>
15 changes: 0 additions & 15 deletions impl-javaee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,4 @@

</dependencies>

<build>
<plugins>
<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
</build>
</project>
15 changes: 0 additions & 15 deletions impl-jboss/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,4 @@

</dependencies>

<build>
<plugins>
<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
</build>
</project>
15 changes: 0 additions & 15 deletions impl-misc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,4 @@

</dependencies>

<build>
<plugins>
<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
</build>
</project>
33 changes: 0 additions & 33 deletions meta-data-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,39 +104,6 @@
</configuration>
</plugin>

<!-- Enforce Maven Environment -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven-environment</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<requireMavenVersion>
<version>[2.2.0,)</version>
<!-- Must be more that 2.2 to support Assembly "includeModuleDirectory":
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
</requireMavenVersion>
<requireJavaVersion>
<version>[1.5.0,)</version> <!-- Must be at least JDK5 -->
</requireJavaVersion>
<requireProperty>
<property>env.JAVA_HOME</property>
<message>"JAVA_HOME needs to be set to compile"</message>
</requireProperty>
<!-- <requireProperty>
<property>env.JAVA5_HOME</property>
<message>"JAVA5_HOME needs to be set to run some tests in the JRE5 runtime"</message>
</requireProperty>-->
</rules>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down
11 changes: 0 additions & 11 deletions metadata-parser-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@
</executions>
</plugin>

<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
11 changes: 0 additions & 11 deletions metadata-parser-test/pom.xml~
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@
</executions>
</plugin>

<!-- Surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
25 changes: 7 additions & 18 deletions metadata-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Run in Java5; be build with a JDK6 compiler so ensure we don't
use any JDK6 libs -->
<jvm>${env.JAVA5_HOME}/bin/java</jvm>
<!-- Speeeeeeed -->
<forkMode>once</forkMode>
</configuration>
</plugin>

</plugins>
</build>

Expand Down Expand Up @@ -127,12 +116,12 @@
<version>1.1</version>
</dependency>

<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
<scope>test</scope>
</dependency>
<dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation seems a bit off, can you fix it @stbischof ?

<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>2.1.4</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
Expand All @@ -141,7 +130,7 @@
<scope>test</scope>
</dependency>

<!-- Testing -->
<!-- Testing -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same indentation problem here

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
*/
public interface Filter {
boolean filter(final Metadata metadata, final TreeWalker walker);
boolean filter(Metadata metadata, TreeWalker walker);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably keep this PR related to updating JDK and poms, code changes could be in a different PR

}
Loading