From cfab9ad4e124684e019097867483e30f61984b86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Thu, 14 Oct 2021 09:37:00 +0200
Subject: [PATCH] GitLab CI: fix Xlint (must go to javac)
---
.gitlab-ci.yml | 2 +-
pom.xml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 17fe22f..73cf72b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ cache:
variables:
MAVEN_OPTS: -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true
- MAVEN_CLI_OPTS: --batch-mode --errors -DinstallAtEnd=true -DdeployAtEnd=true -Xlint:all
+ MAVEN_CLI_OPTS: --batch-mode --errors -DinstallAtEnd=true -DdeployAtEnd=true
build:
script:
diff --git a/pom.xml b/pom.xml
index 8420285..bec6a5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,6 +69,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
+ <compilerArguments>
+ <Xlint:all />
+ </compilerArguments>
<source>${project.source.version}</source>
<target>${project.target.version}</target>
</configuration>
--
GitLab