Skip to content
Snippets Groups Projects
Commit f39d88fc authored by František Dvořák's avatar František Dvořák
Browse files

GitLab CI

parent f2ae50e9
No related branches found
No related tags found
No related merge requests found
Pipeline #759 passed
image:
name: debian:buster
before_script:
- apt-get update -qq
- apt-get install -y --no-install-recommends default-jdk-headless maven
cache:
paths:
- .m2/repository
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
build:
script:
- >
if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" -o -n "$CI_COMMIT_TAG" ]; then
mvn $MAVEN_CLI_OPTS deploy -s $CI_SETTINGS;
else
mvn $MAVEN_CLI_OPTS verify -s $CI_SETTINGS;
fi
artifacts:
paths:
- pom.xml
- target/*.jar
- target/maven-archiver/*.properties
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<configuration> <configuration>
<compilerArguments>
<Xlint:all />
</compilerArguments>
<source>${project.source.version}</source> <source>${project.source.version}</source>
<target>${project.target.version}</target> <target>${project.target.version}</target>
</configuration> </configuration>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment