diff --git a/.gitignore b/.gitignore
index a7b30876e51a0d5a8a28e88202b488a338871336..fa5ca8afbbdfc4b43c715d74a843c7756d155480 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 ae4e08263aaf189da4e606c522525722417aa5db..575e3ab916a01b41a17a93ecc50b451e8ec3e6da 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 8ccc805526acd5ea3de74c0665767e03a1f77743..d56af0abdbcdd972281fad9b16d91e7ab5ae2669 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
+}