-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
64 lines (50 loc) · 2.31 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
apply plugin: 'application'
group = "cz.kramolis.tests"
version = '-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
classifier = ':' // ':jdk8'
undertowVersion = '1.3.25.Final'
weldVersion = '2.4.0.Final'
deltaspikeVersion = '1.7.1'
jerseyVersion = '2.23.2'
ozarkVersion = '1.0.0-m02'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
mainClassName = 'cz.kramolis.tests.mvc.Main'
applicationDefaultJvmArgs = [
"-Dorg.jboss.logging.provider=slf4j",
"-Dorg.slf4j.simpleLogger.log.org.jboss.weld=INFO",
// "-Dorg.jboss.weld.development=true",
"-Djava.util.logging.config.file=src/main/resources/logging.properties"
]
dependencies {
compile group: 'org.glassfish.ozark', name: 'ozark', version: ozarkVersion
compile group: 'org.glassfish.ozark.ext', name: 'ozark-mustache', version: ozarkVersion
compile group: 'org.jboss.weld.se', name: 'weld-se', version: weldVersion
compile group: 'org.apache.deltaspike.cdictrl', name: 'deltaspike-cdictrl-weld', version: deltaspikeVersion
compile group: 'io.undertow', name: 'undertow-core', version: undertowVersion
compile group: 'io.undertow', name: 'undertow-servlet', version: undertowVersion
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: jerseyVersion
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet-core', version: jerseyVersion
compile group: 'org.glassfish.jersey.ext.cdi', name: 'jersey-cdi1x-servlet', version: jerseyVersion
compile group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7.21'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.23'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}
// to support gradle run - beans.xml must be in classes/ directory:
def copyResourcesToClassesTask = task('copyResourcesToClasses', type: Copy) {
from 'build/resources/main'
into 'build/classes/main'
}
// task dependencies
copyResourcesToClassesTask.mustRunAfter tasks.processResources
tasks.classes.dependsOn copyResourcesToClassesTask