1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-05 21:17:52 +00:00

Merge pull request #895 from soloturn/java8

source code java8 compatible, adjust build files to reflect this
This commit is contained in:
PlantUML 2022-02-04 09:31:15 +01:00 committed by GitHub
commit b29fc4a21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 22 deletions

View File

@ -18,7 +18,8 @@ dependencies {
group = "net.sourceforge.plantuml"
description = "PlantUML"
java.sourceCompatibility = JavaVersion.VERSION_1_7
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
java {
withSourcesJar()

23
pom.xml
View File

@ -56,10 +56,8 @@
</parent>
<properties>
<finalName>${project.artifactId}-${project.version}</finalName>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.testSource>1.8</maven.compiler.testSource>
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<main.class>net.sourceforge.plantuml.Run</main.class>
</properties>
<dependencyManagement>
@ -235,23 +233,6 @@
</plugins>
</build>
<profiles>
<profile>
<!--
Kludge to make 1.8 tests with 1.7 source work nicer in IntelliJ
See https://youtrack.jetbrains.com/issue/IDEA-85478
-->
<id>intellij</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>idea.maven.embedder.version</name>
</property>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</profile>
<profile>
<id>pdf</id>
<activation>