From 79ef4e4dd3f5007f72ade83e51ac0a52a21c6b6f Mon Sep 17 00:00:00 2001 From: Miky Date: Tue, 23 Sep 2014 00:37:53 +0200 Subject: [PATCH] Fix travis issues. --- build.gradle.travis | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 build.gradle.travis diff --git a/build.gradle.travis b/build.gradle.travis new file mode 100644 index 0000000..d38838f --- /dev/null +++ b/build.gradle.travis @@ -0,0 +1,49 @@ +apply plugin: 'java' +apply plugin: 'jacoco' +apply plugin: 'eclipse' + +sourceCompatibility = 1.7 + +group = 'org.beyene' +archivesBaseName = 'sius' +version = '0.2.0-SNAPSHOT' + +sourceSets { + main { + java { + exclude 'org/beyene/sius/example/**' + } + } +} + +jar { + manifest { + attributes 'Implementation-Title': 'Sius', 'Implementation-Version': version + } +} + +repositories { + mavenCentral() +} + +dependencies { + testCompile group: 'junit', name: 'junit', version: '4.+' +} + +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +tasks.withType(JavaCompile) { + options.compilerArgs << '-Xlint:all' +} + +artifacts { + archives sourcesJar, javadocJar +} \ No newline at end of file