-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (68 loc) · 1.9 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
description = "Tapestry5 Contribution - Jongo Module"
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
//apply plugin: 'checkstyle'
group = 'org.t5.contrib'
version = '1.0.0-SNAPSHOT'
ext {
libraries = [
tapestry: "5.4-beta-22",
slf4j: "1.7.4",
jongo: "1.1",
spock: "0.7-groovy-2.0"
]
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
// Apache Staging
maven { url "https://repository.apache.org/content/groups/staging" }
}
configurations {
provided
}
//checkstyle {
// configFile = new File(rootDir, "$projectDir/src/checkstyle.xml")
//}
sourceSets {
main {
compileClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
dependencies {
compile "org.apache.tapestry:tapestry-core:${libraries.tapestry}"
compile "org.apache.tapestry:tapestry-mongodb:${libraries.tapestry}"
// Jongo
compile "org.jongo:jongo:${libraries.jongo}"
// SLF4J
compile "org.slf4j:slf4j-api:${libraries.slf4j}"
compile "org.slf4j:slf4j-log4j12:${libraries.slf4j}"
// Servlet API
provided "javax.servlet:servlet-api:2.5"
// Testing
testCompile "org.spockframework:spock-core:${libraries.spock}"
// Embedded Mongo for testing
testCompile "de.flapdoodle.embed:de.flapdoodle.embed.mongo:1.41"
}
jar {
baseName = 't5contrib-jongo'
manifest {
attributes 'Tapestry-Module-Classes': 'org.t5.contrib.jongo.modules.JongoModule'
}
}
test {
useJUnit()
systemProperties["tapestry.service-reloading-enabled"] = "false"
systemProperties["tapestry.execution-mode"] = "development"
maxHeapSize = "600M"
jvmArgs("-XX:MaxPermSize=256M")
enableAssertions = true
}