-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
@@ -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" | ||
|
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" ] | ||
pull_request: | ||
branches: [ "2.0.0-X" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
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. First time I see this, any preference over using the standard 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. Fix the version on its commit hash. @4 is Always the latest of 4 Dependabot can handle the Updates also. 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. 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
||
|
@@ -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> | ||
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. 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> | ||
|
@@ -141,7 +130,7 @@ | |
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- Testing --> | ||
<!-- Testing --> | ||
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. Same indentation problem here |
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
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'd probably keep this PR related to updating JDK and poms, code changes could be in a different PR |
||
} |
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.
Now that 2.0.0-X was renamed this should be "main"