From cab89a7d210673c792bda8b61c1911507ccdd736 Mon Sep 17 00:00:00 2001 From: sidereus Date: Mon, 17 Oct 2016 15:23:39 +0200 Subject: [PATCH] Just few comments --- .travis.yml | 10 +++++----- build.gradle | 9 +++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9fbea0a..937d0ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ language: java jdk: -- oraclejdk8 + - oraclejdk8 before_cache: -- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock -- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ cache: directories: - - "$HOME/.gradle/caches/" - - "$HOME/.gradle/wrapper/" + - "$HOME/.gradle/caches/" + - "$HOME/.gradle/wrapper/" before_deploy: - export GRADLE_BUILD_DIR="build/libs" - export TAG=$(git describe --abbrev=0 --tags) diff --git a/build.gradle b/build.gradle index af22f21..79d9241 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,19 @@ apply plugin: 'java' apply plugin: 'eclipse' +[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' sourceCompatibility = '1.8' + +// to get project version from command line, just type +// $ gradle -PprojVersion= build +// default is na if (project.hasProperty('projVersion')) { project.version = project.projVersion } else { project.version = 'na' } + +// name with versioning of the jar file jar { manifest { attributes 'Implementation-Title' : 'Gradle Quickstart', @@ -14,8 +21,6 @@ jar { } } -[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' - repositories { maven {