-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
102 lines (80 loc) · 2.21 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'application'
sourceCompatibility = 1.8
group = 'com.ofg'
description = 'Microhackaton Deployment Server'
version = '0.0.1-SNAPSHOT'
mainClassName = 'com.ofg.deployments.Main'
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
ext {
groovyVersion = '2.3.3'
spockVersion = '0.7-groovy-2.0'
undertowVersion = '1.0.15.Final'
}
configurations {
compile.exclude group: "org.slf4j", module: "slf4j-log4j12"
compile.exclude group: "org.slf4j", module: "log4j-over-slf4j"
}
dependencies {
compile "org.codehaus.groovy:groovy-all:$groovyVersion:indy"
compile 'org.jboss.resteasy:resteasy-undertow:3.0.8.Final'
compile 'org.jboss.resteasy:resteasy-jackson-provider:3.0.8.Final'
compile "io.undertow:undertow-core:$undertowVersion"
compile "io.undertow:undertow-servlet:$undertowVersion"
compile 'org.apache.ivy:ivy:2.3.0'
compile 'args4j:args4j:2.0.28'
compile 'com.google.guava:guava:17.0'
testCompile("org.spockframework:spock-core:$spockVersion") {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testCompile ('com.jayway.awaitility:awaitility-groovy:1.6.1') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
build.dependsOn 'fatJar'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact fatJar {
classifier "fatJar"
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task fatJar(type: Jar, dependsOn: sourcesJar) {
classifier = 'fatJar'
from files(sourceSets.main.output.classesDir)
from configurations.runtime.asFileTree.files.collect { zipTree(it) }
manifest {
attributes 'Main-Class': 'com.ofg.deployments.Main'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
artifacts {
archives sourcesJar
archives fatJar
}