Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 98 lines (70 sloc) 2.569 kB
e6b962e @hlship Set a description for each project
authored
1 description = "Collection of add-ons for Tapestry 5"
994709b @hlship Initial work on building using Gradle
authored
2
25c1246 @hlship Switch dependency to Tapestry 5.3.4
authored
3 ext.tapestryVersion = "5.3.4"
01c5398 @hlship Change Tapestry dependency to version 5.2.4
authored
4
0f582ab @hlship Update Tapestry dependency to 5.3.3
authored
5 if (!project.hasProperty('deployUserName')) ext.deployUserName = '*UNSET-USERNAME*'
6 if (!project.hasProperty('deployPassword')) ext.deployPassword = '*UNSET-PASSWORD*'
c2a4e70 @hlship Add Gradle script to deploy artifacts to howardlewisship.com
authored
7
8
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
9 apply plugin: 'idea'
10
994709b @hlship Initial work on building using Gradle
authored
11 subprojects {
12 apply plugin: 'java'
13 apply plugin: 'groovy' // mostly for testing
14 apply plugin: 'eclipse'
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
15 apply plugin: 'idea'
1a21976 @hlship Enable Maven installs (to local Maven repository)
authored
16 apply plugin: 'maven'
9526bcd @hlship Enable the under-whelming project-report plugin
authored
17 apply plugin: 'project-report'
994709b @hlship Initial work on building using Gradle
authored
18
19 sourceCompatibility = '1.5'
20 targetCompatibility = '1.5'
21
b5fb0d8 @hlship Create a branch for 1.2 release that will be compatible with Tapestry…
authored
22 version = '1.2-SNAPSHOT'
e6b962e @hlship Set a description for each project
authored
23
b72a1e7 @hlship Fix the version number
authored
24 group = 'com.howardlewisship'
994709b @hlship Initial work on building using Gradle
authored
25
26 repositories {
27 mavenCentral()
01c5398 @hlship Change Tapestry dependency to version 5.2.4
authored
28
994709b @hlship Initial work on building using Gradle
authored
29 // All things JBoss/Javassist/Hibernate
59049a8 @hlship Upgrade to Tapestry 5.3.2, and modify build for Gradle 1.0-milestone-7
authored
30 mavenRepo name: "JBoss", url: "https://repository.jboss.org/nexus/content/repositories/releases/"
06e44f1 @hlship Add build for tapx-datefield
authored
31
32 // For the Kaptcha library
59049a8 @hlship Upgrade to Tapestry 5.3.2, and modify build for Gradle 1.0-milestone-7
authored
33 mavenRepo name: "HLS", url: "http://howardlewisship.com/repository/"
b5fb0d8 @hlship Create a branch for 1.2 release that will be compatible with Tapestry…
authored
34
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
35 // Latest preview packages
b5fb0d8 @hlship Create a branch for 1.2 release that will be compatible with Tapestry…
authored
36
59049a8 @hlship Upgrade to Tapestry 5.3.2, and modify build for Gradle 1.0-milestone-7
authored
37 mavenRepo name: "Apache Staging", url: "https://repository.apache.org/content/groups/staging"
c2a4e70 @hlship Add Gradle script to deploy artifacts to howardlewisship.com
authored
38 }
39
40 configurations {
41 deployerJars
6164ab1 @hlship Use a workaround to provide a "provided" dependency configuration
authored
42 provided
43 }
44
45 // See http://jira.codehaus.org/browse/GRADLE-784
46
47 sourceSets {
48 main {
49 compileClasspath += configurations.provided
50 }
994709b @hlship Initial work on building using Gradle
authored
51 }
52
53 dependencies {
01c5398 @hlship Change Tapestry dependency to version 5.2.4
authored
54 compile "org.apache.tapestry:tapestry-core:$tapestryVersion"
55 testCompile "org.apache.tapestry:tapestry-test:$tapestryVersion"
c2434b1 @hlship Convert the remaining sub-projects to Gradle
authored
56 testCompile "org.easymock:easymock:3.0"
4581a63 @hlship Update Groovy dependency
authored
57 groovy "org.codehaus.groovy:groovy-all:1.7.10"
c2a4e70 @hlship Add Gradle script to deploy artifacts to howardlewisship.com
authored
58
59 deployerJars "org.apache.maven.wagon:wagon-ftp:1.0-beta-2"
994709b @hlship Initial work on building using Gradle
authored
60 }
61
62 test {
63 useTestNG()
64
65 options.suites("src/test/conf/testng.xml")
66 }
c4e0533 @hlship Voodoo magic to get a source JAR installed along with the artifact JAR
authored
67
68 task sourcesJar(type: Jar, dependsOn:classes) {
69 classifier = 'sources'
70 from sourceSets.main.allSource
71 }
72
73 artifacts {
74 archives sourcesJar
75 }
c2a4e70 @hlship Add Gradle script to deploy artifacts to howardlewisship.com
authored
76
77
78 uploadArchives {
79 repositories.mavenDeployer {
80 configuration = configurations.deployerJars
81 // deployUserName and deployPassword should be specified in ~/.gradle/gradle.properties
82 snapshotRepository(url: "ftp://howardlewisship.com/snapshot-repository") {
83 authentication(userName: deployUserName, password: deployPassword)
84 }
85
86 }
87 }
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
88
59049a8 @hlship Upgrade to Tapestry 5.3.2, and modify build for Gradle 1.0-milestone-7
authored
89 idea.module {
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
90 scopes.PROVIDED.plus += configurations.provided
4581a63 @hlship Update Groovy dependency
authored
91 javaVersion = "inherited"
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
92 }
93 }
94
59049a8 @hlship Upgrade to Tapestry 5.3.2, and modify build for Gradle 1.0-milestone-7
authored
95 idea.project {
96 javaVersion = "1.6"
39326ee @hlship Switch over to Tapestry 5.3-alpha-2
authored
97 }
Something went wrong with that request. Please try again.