From 76aba6caac7e3894a53d1f88fb1d057d982aab38 Mon Sep 17 00:00:00 2001 From: Robin Oppermann <robinopp@mail.uni-paderborn.de> Date: Thu, 26 Jan 2017 21:34:00 +0100 Subject: [PATCH] Build lib into correct directory and add artifacts --- .gitignore | 2 ++ .gitlab-ci.yml | 4 ++++ build.gradle | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a7b30876..fa5ca8af 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ doc/package-list .idea/ .gradle/ build/ +target/ +lib/Simulator.jar diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae4e0826..575e3ab9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,10 @@ build: stage: build script: - ./gradlew -g /cache/.gradle clean assemble + artifacts: + paths: + - lib/Simulator.jar + - target/ allow_failure: false # Use the generated build output to run the tests. diff --git a/build.gradle b/build.gradle index 8ccc8055..d56af0ab 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,6 @@ allprojects { } } - sourceSets { main { java { @@ -41,6 +40,10 @@ sourceSets { } } +jar { + destinationDir = new File('lib') +} + dependencies { // The production code uses Guava compile 'com.google.guava:guava:20.0' @@ -48,4 +51,4 @@ dependencies { // Use JUnit test framework testCompile 'junit:junit:4.12' -} \ No newline at end of file +} -- GitLab