-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
120 lines (92 loc) · 2.98 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
description = "Collection of add-ons for Tapestry 5"
ext.tapestryVersion = "5.3.8"
ext.versions = [
selenium: "2.35.0"
]
if (!project.hasProperty('deployUserName')) ext.deployUserName = '*UNSET-USERNAME*'
if (!project.hasProperty('deployPassword')) ext.deployPassword = '*UNSET-PASSWORD*'
apply plugin: 'idea'
subprojects {
apply plugin: 'java'
apply plugin: 'groovy' // mostly for testing
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'project-report'
sourceCompatibility = '1.5'
targetCompatibility = '1.5'
version = '1.3'
group = 'com.howardlewisship'
repositories {
mavenCentral()
// All things JBoss/Javassist/Hibernate
maven {
name "JBoss"
url "https://repository.jboss.org/nexus/content/repositories/releases/"
}
// For the Kaptcha library
maven {
name "HLS"
url "http://howardlewisship.com/repository/"
}
// Latest preview packages
maven {
name "Apache Staging"
url "https://repository.apache.org/content/groups/staging"
}
}
configurations {
deployerJars
provided
}
// See http://jira.codehaus.org/browse/GRADLE-784
sourceSets {
main {
compileClasspath += [configurations.provided]
}
test {
compileClasspath += [configurations.provided]
runtimeClasspath += [configurations.provided]
}
}
idea.module {
scopes.PROVIDED.plus += [configurations.provided]
}
dependencies {
compile "org.apache.tapestry:tapestry-core:$tapestryVersion"
provided "org.mortbay.jetty:servlet-api:3.0.20100224"
testCompile "org.easymock:easymock:3.0"
testCompile "org.codehaus.groovy:groovy-all:2.4.3"
testCompile "org.testng:testng:6.8.21"
deployerJars "org.apache.maven.wagon:wagon-ftp:1.0-beta-2"
}
test {
useTestNG()
options.suites("src/test/conf/testng.xml")
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
// deployUserName and deployPassword should be specified in ~/.gradle/gradle.properties
snapshotRepository(url: "ftp://howardlewisship.com/snapshot-repository") {
authentication(userName: deployUserName, password: deployPassword)
}
repository(url: "ftp://howardlewisship.com/repository") {
authentication(userName: deployUserName, password: deployPassword)
}
}
}
idea.module {
jdkName = "inherited"
}
}
idea.project {
languageLevel = "1.6"
}