forked from vnugent/joreman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (93 loc) · 2.58 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
101
102
103
104
105
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
allprojects {
sourceCompatibility = 1.6
targetCompatibility = 1.6
sourceSets {
main {
java {
srcDirs "src/main/java"
}
groovy {
srcDirs "src/main/java"
}
resources {
srcDirs "src/main/java", "scripts", "src/main/resources"
}
}
test {
java {
srcDirs "src/main/java"
}
groovy {
srcDirs "src/main/java"
}
resources {
srcDirs "src/main/resources"
}
}
}
compileGroovy.groovyOptions.fork = false
compileTestGroovy.groovyOptions.fork = false
}
configurations {
testng
compile.exclude module: 'scannotation'
}
eclipse {
classpath {
ext.defaultOutputDir = file('build')
}
project {
ext.defaultOutputDir = file('build')
}
project {
file {
whenMerged { project ->
if ( !project.buildCommands[0].name.contains('PyDev') ) {
project.buildCommands = project.buildCommands.reverse()
}
}
}
natures 'org.python.pydev.pythonNature'
buildCommand 'org.python.pydev.PyDevBuilder'
}
}
repositories {
mavenCentral()
[ 'https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads',
'http://clojars.org/repo',
'http://mirrors.ibiblio.org/pub/mirrors/maven2/',
'http://mvnrepository.com/artifact',
'http://download.java.net/maven/2',
'http://repository.codehaus.org',
'http://snapshots.repository.codehaus.org' ].each { repo ->
maven {
url repo
}
}
}
dependencies {
def resteasyVersion = '3.0.6.Final'
def httpBuilderVersion = '0.5.2'
def slf4jVersion = '1.7.5'
if ( System.properties['httpbuilder.version'] ) {
httpBuilderVersion = System.properties['httpbuilder.version']
}
compile "org.jboss.resteasy:resteasy-client:${resteasyVersion}",
"org.jboss.resteasy:resteasy-jackson2-provider:${resteasyVersion}",
'org.testng:testng:6.8',
"org.slf4j:slf4j-api:${slf4jVersion}",
'velocity:velocity-dep:1.4',
'org.apache.commons:commons-lang3:3.0'
groovy 'org.codehaus.groovy:groovy:1.8.6'
testng 'org.testng:testng:6.8'
}
task printClasspath << {
println configurations.runtime.asPath
}
task printProps << {
println System.properties
}