-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·137 lines (109 loc) · 4.77 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'groovy'
apply plugin: 'com.moowork.grunt'
apply plugin: 'com.moowork.node'
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
group 'com.rooftopcoder.web'
version '1.0'
repositories {
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.3'
compile group: 'javax.jcr', name: 'jcr', version: '2.0'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.0.0'
compile group: 'org.aeonbits.owner', name: 'owner', version: '1.0.6'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.10'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.3'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.1.3'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.1'
compile group: 'org.mongodb.morphia', name: 'morphia', version: '1.1.0'
compile(group: 'com.sparkjava', name: 'spark-core', version: '2.3') {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.8'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '1.3.9'
compile group: 'com.google.code.findbugs', name: 'annotations', version: '2.0.1'
compile group: 'org.aeonbits.owner', name: 'owner', version: '1.0.9'
compile group: 'com.braintreepayments.gateway', name: 'braintree-java', version: '2.65.0'
compile group: 'org.apache.commons', name: 'commons-email', version: '1.4'
testCompile(
[ group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.4' ],
[ group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3' ], // only necessary if Hamcrest matchers are used
)
runtime "cglib:cglib:2.2.2"
testRuntime "cglib:cglib-nodep:3.1" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:2.1" // allows mocking of classes without default constructor (together with CGLIB)
}
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'com.moowork.gradle:gradle-grunt-plugin:0.13'
classpath 'com.moowork.gradle:gradle-node-plugin:0.13'
classpath 'com.sourcemuse.gradle.plugin:gradle-mongo-plugin:0.8.0'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
npmInstall {
outputs.upToDateWhen {
false
}
}
nodeSetup {
outputs.upToDateWhen { false }
}
installGrunt {
outputs.upToDateWhen { false }
}
npmSetup {
outputs.upToDateWhen { false }
}
task cleanNodeModules(type: Exec) {
commandLine 'rm', '-rf', './node_modules'
}
tasks.withType( NodeTask ) { dependsOn npmInstall }
npmInstall.dependsOn(cleanNodeModules, installGrunt)
grunt_build.dependsOn npmInstall
configurations {
remoteSources {
transitive false
}
}
war {
dependsOn grunt_build
baseName = 'shadow-rigs'
classifier = ''
}
dependencies {
remoteSources 'com.github.jsimone:webapp-runner:8.0.24.0'
}
node {
version = '4.4.3'
npmVersion = '2.15.1'
download = true
}
task stage(dependsOn: ['prepareWebRunner','build'])
task prepareWebRunner(type: Copy) {
from configurations.remoteSources
into "${project.buildDir}/libs"
rename {
'web-runner.jar'
}
}