Skip to content

Commit

Permalink
Set default source level to 11, update maven plugins to use 17 when n…
Browse files Browse the repository at this point in the history
…eeed, do not use unavailable toList method in OSSLCodesigner. (#365)
  • Loading branch information
netomi authored Nov 6, 2023
1 parent 87ce4bb commit fd067e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>

<auto-value.version>1.10.4</auto-value.version>
</properties>
Expand Down
4 changes: 4 additions & 0 deletions maven-plugins/eclipse-cbi-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<relativePath>../pom.xml</relativePath>
</parent>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down
4 changes: 4 additions & 0 deletions maven-plugins/eclipse-jarsigner-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<relativePath>../pom.xml</relativePath>
</parent>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.nio.file.StandardCopyOption;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import com.google.auto.value.AutoValue;
import com.google.common.base.Joiner;
Expand Down Expand Up @@ -74,7 +75,7 @@ private ImmutableList<String> createCommand(Path in, Path out) {
.add("-pass", pkcs12Password())
.add("-n", description())
.add("-i", uri().toString())
.addAll(timestampURIs().stream().map(x -> List.of("-t", x.toString())).flatMap(List::stream).toList())
.addAll(timestampURIs().stream().map(x -> List.of("-t", x.toString())).flatMap(List::stream).collect(Collectors.toList()))
.add("-in", in.toString())
.add("-out", out.toString())
.build();
Expand Down

0 comments on commit fd067e4

Please sign in to comment.