From 639e7aac6050e4bf2c31c519b98a77027080ef07 Mon Sep 17 00:00:00 2001 From: Poeschl Date: Sun, 3 Jul 2016 10:01:48 +0200 Subject: [PATCH] Added jar creation --- .travis.yml | 5 ++++- build.gradle | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a0b8927..ff12c86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,7 @@ cache: - $HOME/.gradle/ script: - - ./gradlew check jacocoTestReport coveralls \ No newline at end of file + - ./gradlew check + +after_script: + - ./gradlew jacocoTestReport coveralls \ No newline at end of file diff --git a/build.gradle b/build.gradle index d57d72a..3c5e721 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,7 @@ buildscript { dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1" classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3" + classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3" } } repositories { @@ -20,6 +21,7 @@ apply plugin: 'java' apply plugin: 'kotlin' apply plugin: "jacoco" apply plugin: 'com.github.kt3k.coveralls' +apply plugin: "com.github.johnrengelman.shadow" sourceCompatibility = 1.7 @@ -40,6 +42,13 @@ jacocoTestReport { } } +//noinspection GroovyAssignabilityCheck +jar { + manifest { + attributes 'Main-Class': 'io.github.poeschl.example.kotlindecider.ApplicationKt' + } +} + dependencies { compile 'org.jetbrains.kotlin:kotlin-stdlib:1.0.1' compile 'args4j:args4j:2.33'