-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (58 loc) · 1.34 KB
/
Copy pathbuild.gradle
File metadata and controls
70 lines (58 loc) · 1.34 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:0.8'
}
}
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: 'shadow'
archivesBaseName = "ltgroovy"
mainClassName = 'lt.groovy.LTServer'
repositories {
jcenter()
maven {
url "http://dl.bintray.com/rundis/maven"
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.0',
"org.gradle:gradle-tooling-api:1.12",
"ch.qos.logback:logback-classic:1.1.2",
"ch.qos.logback:logback-core:1.1.2",
"no.rundis.gradle:generic-gradle-model:0.0.2",
'cglib:cglib-nodep:2.2.2'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
}
shadow {
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
artifactSet {
exclude 'org.codehaus.groovy'
}
}
sourceSets {
main {
groovy {
srcDirs = ["groovy-src/main"]
}
resources {
srcDirs = ["groovy-src/resources"]
}
}
test {
groovy {
srcDirs = ["groovy-src/test"]
}
}
}
task deploy(type: Copy, dependsOn: shadowJar) {
from shadow.shadowJar
into 'lib'
rename "ltgroovy-unspecified-shadow.jar", "ltgroovy.jar"
}
task wrapper (type: Wrapper) {
gradleVersion = '1.12'
}