1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-25 06:17:33 +00:00

Merge pull request #907 from soloturn/master

permit "mvn test" with java8.
This commit is contained in:
PlantUML 2022-02-10 16:09:06 +01:00 committed by GitHub
commit b438f6561c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
pom.xml
View File

@ -56,7 +56,6 @@
</parent>
<properties>
<finalName>${project.artifactId}-${project.version}</finalName>
<maven.compiler.release>8</maven.compiler.release>
<main.class>net.sourceforge.plantuml.Run</main.class>
</properties>
<dependencyManagement>
@ -232,6 +231,28 @@
</plugins>
</build>
<profiles>
<profile>
<!-- set the release flag only for jdk which do support it, plantuml should keep running with java8. -->
<id>javac-release-flag</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<!-- the source contains java11+ syntax, let mvn shout. allow "mvn test" with java8 as rendering sometimes
can give different results with java8. -->
<id>javac-source-flag</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</profile>
<profile>
<id>pdf</id>
<activation>