Skip to content

Commit

Permalink
WIP: Fixed #401 - Upgrade Build Minimum to Maven 3.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
khmarbaise committed Dec 20, 2023
1 parent 5091d37 commit 149e993
Show file tree
Hide file tree
Showing 15 changed files with 116 additions and 116 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ as described or as you expected them to work.
If you like to build the project from source yourself you need the following:

* JDK 18+
* Apache Maven 3.8.6+
* Apache Maven 3.9+

The whole project can be built via:
```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ void option_debug(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ void no_goals_at_all(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand All @@ -67,7 +67,7 @@ void goal_clean(MavenExecutionResult result) {
"-------------------< com.soebes.katas:kata-fraction >-------------------",
"Building kata-fraction 1.0-SNAPSHOT",
"--------------------------------[ jar ]---------------------------------",
"--- maven-clean-plugin:3.3.2:clean (default-clean) @ kata-fraction ---"
"--- clean:3.3.2:clean (default-clean) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand All @@ -88,11 +88,11 @@ void goal_clean_compile(MavenExecutionResult result) {
"-------------------< com.soebes.katas:kata-fraction >-------------------",
"Building kata-fraction 1.0-SNAPSHOT",
"--------------------------------[ jar ]---------------------------------",
"--- maven-clean-plugin:3.3.2:clean (default-clean) @ kata-fraction ---",
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---"
"--- clean:3.3.2:clean (default-clean) @ kata-fraction ---",
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void goal_clean(MavenExecutionResult result) {
"-------------------< com.soebes.katas:kata-fraction >-------------------",
"Building kata-fraction 1.0-SNAPSHOT",
"--------------------------------[ jar ]---------------------------------",
"--- maven-clean-plugin:3.3.2:clean (default-clean) @ kata-fraction ---"
"--- clean:3.3.2:clean (default-clean) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ void clean_verify(MavenExecutionResult result) {
"Scanning for projects...",
"-------------------< com.soebes.katas:kata-fraction >-------------------",
"--------------------------------[ jar ]---------------------------------",
"--- maven-clean-plugin:3.3.2:clean (default-clean) @ kata-fraction ---",
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- clean:3.3.2:clean (default-clean) @ kata-fraction ---",
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"Tests run: 34, Failures: 0, Errors: 0, Skipped: 0",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---",
"Skipping because packaging 'jar' is not pom.",
"--- jacoco-maven-plugin:0.8.11:report (default) @ kata-fraction ---"
"--- jacoco:0.8.11:report (default) @ kata-fraction ---"
);

assertThat(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ void no_options_at_all(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand All @@ -74,15 +74,15 @@ void option_debug(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ void option_debug(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ void profile_1_2_3(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void profile_1(MavenExecutionResult result) {
.isSuccessful()
.out()
.info()
.contains("--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---");
.contains("--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---");
assertThat(result)
.isSuccessful()
.out()
Expand All @@ -60,8 +60,8 @@ void profile_1_2(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand All @@ -77,9 +77,9 @@ void profile_1_2_3(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ void profile_1_2_3(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand All @@ -57,7 +57,7 @@ void profile_1(MavenExecutionResult result) {
.out()
.info()
.contains(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ void profile_1_2_3(MavenExecutionResult result) {
.out()
.info()
.contains(
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo-maven-plugin:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
"--- echo:0.5.0:echo (echo-in-profile-1) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-2) @ kata-fraction ---",
"--- echo:0.5.0:echo (echo-in-profile-3) @ kata-fraction ---"
);
assertThat(result)
.isSuccessful()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ void property_skiptests(MavenExecutionResult result) {
.out()
.info()
.containsSubsequence(
"--- maven-enforcer-plugin:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco-maven-plugin:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- maven-resources-plugin:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- maven-surefire-plugin:3.2.2:test (default-test) @ kata-fraction ---",
"--- enforcer:3.4.1:enforce (enforce-maven) @ kata-fraction ---",
"--- jacoco:0.8.11:prepare-agent (default) @ kata-fraction ---",
"--- resources:3.3.1:resources (default-resources) @ kata-fraction ---",
"--- compiler:3.11.0:compile (default-compile) @ kata-fraction ---",
"--- resources:3.3.1:testResources (default-testResources) @ kata-fraction ---",
"--- compiler:3.11.0:testCompile (default-testCompile) @ kata-fraction ---",
"--- surefire:3.2.2:test (default-test) @ kata-fraction ---",
"Tests are skipped.",
"--- maven-jar-plugin:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- maven-site-plugin:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
"--- jar:3.3.0:jar (default-jar) @ kata-fraction ---",
"--- site:3.12.1:attach-descriptor (attach-descriptor) @ kata-fraction ---"
);

assertThat(result)
Expand Down
Loading

0 comments on commit 149e993

Please sign in to comment.