Skip to content
Merged
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
3 changes: 1 addition & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
name: Build it
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
with:
matrix-exclude: '[ {"jdk": "8"}, {"jdk": "11"}, {"jdk": "25", "distribution": "microsoft"} ]'
jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica", "corretto"]'
matrix-exclude: '[ {"jdk": "8"}, {"jdk": "11"} ]'
maven_args: 'verify javadoc:javadoc -e -B -V -fae'

deploy:
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ reactor contains `plexus-compiler-api`, `plexus-compiler-manager`, `plexus-compi
project runs `clean test-compile`. The projects are test fixtures: keep them as they are unless
you are changing what they cover.
On GitHub Actions the `ci-skip-its` profile sets `invoker.skip`, and `ci-run-its` turns it off for
the Linux, JDK 21, Zulu cell only, so the ITs run once per build (they download from Central, and
the Linux, JDK 21 cell only, so the ITs run once per build (they download from Central, and
running them in every cell got HTTP 429). A local build always runs them.
- The parent POM pins the AspectJ, Error Prone and Eclipse Sisu versions used by the compiler
implementations in properties; change them there.
Expand Down
6 changes: 1 addition & 5 deletions plexus-compiler-its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<profiles>
<!-- The shared build workflow gives every matrix cell the same Maven arguments, and the ITs download from
Central, so running them in every cell gets HTTP 429. On GitHub Actions the ITs run in one cell only
(Linux, JDK 21, Zulu); a local build always runs them. -->
(Linux, JDK 21); a local build always runs them. -->
<profile>
<id>ci-skip-its</id>
<activation>
Expand All @@ -104,10 +104,6 @@
<os>
<name>Linux</name>
</os>
<property>
<name>java.vendor</name>
<value>Azul Systems, Inc.</value>
</property>
</activation>
<properties>
<invoker.skip>false</invoker.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,24 @@ private static Stream<Arguments> testParseModernStream_withAnnotationProcessingE
"JAVA_1_5, 1.4, false",
"JAVA_1_8, 1.8, true",
"JAVA_1_8, 22.0.2-something, true",
"JAVA_9, 21.0.13, true",
"JAVA_9, 21.0.13.1, true",
"JAVA_9, 1.8.0_512, false",
"JAVA_1_8, unknown, true"
})
void javaVersionPrefixes(JavaVersion version, String otherVersion, boolean expected) {
assertEquals(expected, version.isOlderOrEqualTo(otherVersion));
}

@ParameterizedTest(name = "extract {0} -> {1}")
@CsvSource({"javac 11.0.22, 11.0", "11.0.22, 11.0", "javac 21, 21", "javac 1.8.0_432, 1.8"})
@CsvSource({
"javac 11.0.22, 11.0",
"11.0.22, 11.0",
"javac 21, 21",
"javac 1.8.0_432, 1.8",
"21.0.13, 21.0",
"21.0.13.1, 21.0"
})
void extractMajorAndMinorVersion(String text, String expected) {
assertEquals(expected, JavacCompiler.extractMajorAndMinorVersion(text));
}
Expand Down
Loading