forked from hlship/tapx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (59 loc) · 2.15 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
description = "Collection of add-ons for Tapestry 5"
tapestryVersion = "5.2.5"
if (!project.hasProperty('deployUserName')) deployUserName = '*UNSET-USERNAME*'
if (!project.hasProperty('deployPassword')) deployPassword = '*UNSET-PASSWORD*'
subprojects {
apply plugin: 'java'
apply plugin: 'groovy' // mostly for testing
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'project-report'
sourceCompatibility = '1.5'
targetCompatibility = '1.5'
version = '1.1-SNAPSHOT'
group = 'com.howardlewisship'
repositories {
mavenCentral()
// All things JBoss/Javassist/Hibernate
mavenRepo urls: "https://repository.jboss.org/nexus/content/repositories/releases/"
// For the Kaptcha library
mavenRepo urls: "http://howardlewisship.com/repository/"
}
configurations {
deployerJars
provided
}
// See http://jira.codehaus.org/browse/GRADLE-784
sourceSets {
main {
compileClasspath += configurations.provided
}
}
dependencies {
compile "org.apache.tapestry:tapestry-core:$tapestryVersion"
testCompile "org.apache.tapestry:tapestry-test:$tapestryVersion"
testCompile "org.easymock:easymock:3.0"
groovy "org.codehaus.groovy:groovy-all:1.7.4"
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)
}
}
}
}