Skip to content
Snippets Groups Projects
Verified Commit 8b631d77 authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

neue Jena-Bibliothek benötigt Java 17

parent 52cae60f
No related branches found
No related tags found
No related merge requests found
Pipeline #1250 passed
......@@ -11,7 +11,7 @@ stages:
build:
stage: build
image: maven:3-openjdk-11
image: maven:3-openjdk-17
script: "mvn clean package -B"
artifacts:
paths:
......
......@@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......
......@@ -28,18 +28,10 @@ public class Mapping {
static {
log.debug("Reading list of allowed file formats...");
try {
ALLOWED_FORMATS = IOUtils.readLines(Objects.requireNonNull(Mapping.class.getResourceAsStream("/allowed-formats.txt")), StandardCharsets.UTF_8).toArray(new String[0]);
} catch (IOException e) {
throw new RuntimeException(e);
}
ALLOWED_FORMATS = IOUtils.readLines(Objects.requireNonNull(Mapping.class.getResourceAsStream("/allowed-formats.txt")), StandardCharsets.UTF_8).toArray(new String[0]);
log.debug("Reading list of allowed service formats...");
try {
SERVICES = IOUtils.readLines(Objects.requireNonNull(Mapping.class.getResourceAsStream("/allowed-services.txt")), StandardCharsets.UTF_8).toArray(new String[0]);
} catch (IOException e) {
throw new RuntimeException(e);
}
SERVICES = IOUtils.readLines(Objects.requireNonNull(Mapping.class.getResourceAsStream("/allowed-services.txt")), StandardCharsets.UTF_8).toArray(new String[0]);
}
public static String mapScopeCode(Element element) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment