-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
118 lines (91 loc) · 3.6 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
description = "Tapestry 5 portlet Module"
import org.gradle.api.Project
apply plugin: 'java'
apply plugin: "groovy" // mostly for testing
apply plugin: 'war'
apply plugin: 'jetty'
// Specific to top-level build, not set for subprojects:
configurations {
provided
deployerJars
binaries // additional dependencies included in the binary archive
}
// See http://jira.codehaus.org/browse/GRADLE-784
sourceSets {
main {
compileClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
Project projectDef = project;
tapestryVersion = "5.4-rc-1"
liferayVersion = "6.1.0"
servletapi = "2.5"
spock = "0.6-groovy-1.8"
repositories {
mavenLocal()
mavenCentral()
//mavenRepo urls: "https://repository.apache.org/content/repositories/staging/"
}
dependencies {
compile "org.apache.tapestry:tapestry-core:$tapestryVersion"
compile "org.apache.tapestry:tapestry-upload:$tapestryVersion"
compile "org.slf4j:slf4j-api:1.6.1"
compile "org.slf4j:slf4j-log4j12:1.6.1"
compile "javax.servlet:servlet-api:2.5"
compile group: 'javax.servlet', name: 'jsp-api', version: '2.0'
providedCompile group: 'javax.portlet', name: 'portlet-api', version: '2.0'
providedCompile group: 'com.liferay.portal', name: 'portal-service', version:'6.1.0'
testCompile "org.apache.tapestry:tapestry-test:$tapestryVersion"
testCompile("org.apache.portals.pluto:pluto-container:2.0.3") {
exclude module: 'slf4j-api'
}
testCompile group: 'com.liferay.portal', name: 'portal-service', version:'6.1.0'
testCompile "org.apache.portals.pluto:pluto-container-api:2.0.3"
testCompile "org.apache.portals.pluto:pluto-portal-driver-impl:2.0.3"
testCompile "org.apache.portals.pluto:pluto-container-driver-api:2.0.3"
//testCompile "org.apache.portals.pluto:pluto-taglib:2.0.3"
//testCompile "javax.ccpp:ccpp:1.0"
testRuntime("org.apache.portals.pluto:pluto-container:2.0.3") {
exclude module: 'slf4j-api'
}
//testRuntime group: 'com.liferay.portal', name: 'portal-service', version:'6.1.0'
testRuntime "org.apache.portals.pluto:pluto-container-api:2.0.3"
testRuntime "org.apache.portals.pluto:pluto-portal-driver-impl:2.0.3"
testRuntime "org.apache.portals.pluto:pluto-container-driver-api:2.0.3"
testRuntime "org.apache.portals.pluto:pluto-taglib:2.0.3"
testRuntime "javax.ccpp:ccpp:1.0"
testRuntime "org.eclipse.jetty:jetty-server:7.0.0.v20091005"
testRuntime "org.eclipse.jetty:jetty-webapp:7.0.0.v20091005"
testRuntime "org.mortbay.jetty:jetty-jsp-2.1:7.0.0.v20091005"
testRuntime "org.mortbay.jetty:jsp-2.1-glassfish:2.1.v20091210"
testRuntime "com.bekk.boss:maven-jetty-pluto-embedded:1.0.1"
testCompile "org.spockframework:spock-core:${spock}"
groovy "org.codehaus.groovy:groovy-all:1.8.6"
}
jettyRun {
dependsOn testClasses
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.runtimeClasspath
httpPort = 8080
webXml = new File("$projectDef.projectDir/src/main/webapp/WEB-INF/plugin-web.xml")
}
// Not sure why this is necessary:
compileTestGroovy.dependsOn compileTestJava
test {
useJUnit()
//useTestNG()
//options.suites("src/test/conf/testng.xml")
maxHeapSize = "400M"
systemProperties["tapestry.service-reloading-enabled"] = "false"
jvmArgs("-XX:MaxPermSize=512m")
logging.captureStandardOutput LogLevel.INFO
getLogging().setLevel(LogLevel.INFO)
}
jar {
manifest {
attributes 'Tapestry-Module-Classes': 'org.apache.tapestry5.portlets.services.PortletModule'
}
}