You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/01/20 19:09:44 UTC
svn commit: r1234048 - /tapestry/tapestry5/trunk/build.gradle
Author: hlship
Date: Fri Jan 20 18:09:43 2012
New Revision: 1234048
URL: http://svn.apache.org/viewvc?rev=1234048&view=rev
Log:
More simplifications of the Gradle build
Modified:
tapestry/tapestry5/trunk/build.gradle
Modified: tapestry/tapestry5/trunk/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1234048&r1=1234047&r2=1234048&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/build.gradle (original)
+++ tapestry/tapestry5/trunk/build.gradle Fri Jan 20 18:09:43 2012
@@ -1,5 +1,7 @@
description = "Apache Tapestry 5 Project"
+apply plugin: 'base'
+
// Remember that when generating a release, this should be incremented. Also don't forget to
// tag the release in Subversion.
tapestryVersion = "5.4-alpha-1"
@@ -38,6 +40,26 @@ allprojects {
}
}
+ configurations {
+ // Non-code artifacts, such as sources JARs and zipped JavaDocs
+ meta
+ }
+
+}
+
+
+// Specific to top-level build, not set for subprojects:
+
+configurations {
+ javadoc
+ published.extendsFrom archives, meta
+ if (doSign) {
+ published.extendsFrom signatures
+ }
+}
+
+dependencies {
+ javadoc project(':tapestry-javadoc')
}
subprojects {
@@ -49,8 +71,6 @@ subprojects {
provided
deployerJars
- // meta -- non-code artifacts, such as sources and javadoc JARs
- meta
}
apply plugin: 'java'
@@ -156,20 +176,6 @@ subprojects {
}
}
-// Specific to top-level build, not set for subprojects:
-
-configurations {
- javadoc
- published.extendsFrom archives, meta
- if (doSign) {
- published.extendsFrom signatures
- }
-}
-
-dependencies {
- javadoc project(':tapestry-javadoc')
-}
-
subprojects.each { project.evaluationDependsOn(it.name) }
// Cribbed from https://github.com/hibernate/hibernate-core/blob/master/release/release.gradle#L19
@@ -222,8 +228,8 @@ aggregateJavadoc.doLast {
}
}
-task clean(type: Delete) {
- delete buildDirName
+dependencies {
+ meta aggregateJavadoc.outputs.files
}
task continuousIntegration {
@@ -279,3 +285,4 @@ task zippedJavadoc(type: Zip) {
boolean isSnapshot() {
project.version.contains('SNAPSHOT')
}
+