forked from mbezjak/kin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (38 loc) · 919 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
apply plugin: 'groovy'
apply plugin: 'eclipse'
version = 0.1
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
mavenRepo urls: 'http://m2repo.spockframework.org/snapshots'
}
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.1'
testCompile 'org.spockframework:spock-core:0.5-groovy-1.8'
testCompile 'cglib:cglib-nodep:2.2.2'
testCompile 'junit:junit:4.8.2'
}
jar {
archiveName = 'kin.jar'
manifest {
attributes 'Main-Class': 'hr.helix.kin.Main'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
from 'LICENSE'
}
task dist(type: Zip) {
dependsOn jar, groovydoc
from jar.archivePath
from 'Changelog.md'
from 'LICENSE'
from 'README.md'
into('docs/api') {
from "$buildDir/docs/groovydoc"
}
into('src') {
from 'src/main/groovy'
}
}