Commit 6f79dc8a authored by Daniel Christophis's avatar Daniel Christophis

* Upgraded gradle build script

* Use gradle wrapper verion 2.4
* Plugin 'maven' added to install jar to local repo
* Sources jar will also be generated
parent 2c1c9d83
......@@ -8,3 +8,6 @@ target/*
/bin/
/target/
target
.classpath
.project
.settings
\ No newline at end of file
buildscript {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'org.gitlab'
version = '1.1.8-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'org.codehaus.jackson:jackson-core-asl:1.9.9'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.9'
compile 'commons-io:commons-io:1.4'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'junit:junit:4.11'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.13')
compile(group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13')
compile(group: 'commons-io', name: 'commons-io', version: '1.4')
testCompile(group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3')
testCompile(group: 'junit', name: 'junit', version: '4.11')
}
jar {
manifest { attributes 'Gradle-Version': gradle.gradleVersion }
}
install {
repositories.mavenInstaller { pom.artifactId = 'java-gitlab-api' }
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts { archives sourcesJar }
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
gradleVersion = '2.4'
}
#Wed Jul 02 09:36:44 CEST 2014
#Wed May 13 23:55:44 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment