Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Advent of Code 2023 in Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LUDMANN Pierre
Advent of Code 2023 in Java
Commits
04f2befc
Commit
04f2befc
authored
1 year ago
by
LUDMANN Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[mvn] exec:java become final part of phase test
parent
a5746272
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-13
8 additions, 13 deletions
README.md
pom.xml
+21
-2
21 additions, 2 deletions
pom.xml
with
29 additions
and
15 deletions
README.md
+
8
−
13
View file @
04f2befc
...
...
@@ -9,20 +9,19 @@ Requirements
-
Maven
-
Java SDK (21 here but it shouldn't matter)
Build
Build
and use
-----
mvn clean install
Usage
-----
mvn exec:java -Day=1
mvn exec:java -Day=10
mvn exec:java
mvn test -Day=1
mvn test -Day=10
mvn test
When no day is given, it assumes today.
From IntelliJ, you may run
`mvn test`
via the Maven panel.
Access the Maven panel via its button on the right top bar,
or via View>Tool Windows.
Contributing
------------
...
...
@@ -31,7 +30,3 @@ Most of your work should go to implement the methods `String part1()` and `Strin
The superclass
`Day`
provides a constructor to fetch the inputs
`day1.input1`
, ...,
`day10.input`
, ...
from
`src/(main|test)/resources`
.
In development, you might want to chain the Maven goals:
mvn clean install exec:java
This diff is collapsed.
Click to expand it.
pom.xml
+
21
−
2
View file @
04f2befc
...
...
@@ -12,8 +12,6 @@
<maven.compiler.source>
21
</maven.compiler.source>
<maven.compiler.target>
21
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<exec.mainClass>
${project.groupId}.Main
</exec.mainClass>
<exec.args>
${ay}
</exec.args>
<ay>
${maven.build.timestamp}
</ay>
<maven.build.timestamp.format>
d
</maven.build.timestamp.format>
</properties>
...
...
@@ -26,4 +24,25 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec-maven-plugin
</artifactId>
<version>
3.1.1
</version>
<executions>
<execution>
<phase>
test
</phase>
<goals>
<goal>
java
</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>
${project.groupId}.Main
</mainClass>
<arguments>
${ay}
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment