forked from kohsuke/java-gitlab-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (38 loc) · 1001 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
buildscript {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
apply plugin: 'java'
apply plugin: 'maven'
// IDE plugins
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'org.gitlab'
version = '1.2.7-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.5.3')
compile(group: 'commons-io', name: 'commons-io', version: '2.4')
testCompile(group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3')
testCompile(group: 'junit', name: 'junit', version: '4.12')
}
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 = '2.4'
}