Skip to content
Snippets Groups Projects
Commit cf18bf38 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Use java 17

parent fed03248
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
<description>PlayWall Server</description>
<properties>
<java.version>21</java.version>
<java.version>17</java.version>
<snakeyaml.version>2.2</snakeyaml.version>
</properties>
......
......@@ -53,7 +53,10 @@ public class ArtifactoryClient
.map(child -> versionTokenizer.getVersion(child.getUri()))
.sorted(Comparator.comparing(Version::major).thenComparing(Version::minor).thenComparing(Version::patch))
.toList();
return version.getLast();
if (version.isEmpty()) {
return null;
}
return version.get(version.size() - 1);
}
private record ArchiveViewSourceRequest(String archivePath, String repoKey, String sourcePath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment