Permalink
Browse files

Treat the “dist” dir like an m2 repository for the core jars, instead…

… of just copying the jars there in a flat fashion (i.e. without metadata).
  • Loading branch information...
1 parent 1ec2c3d commit 44cca929a84884714eee6cb09f1df598af8253bc @ldaley ldaley committed Jan 3, 2013
Showing with 11 additions and 10 deletions.
  1. +11 −0 build.gradle
  2. +0 −10 gradle/assemble.gradle
View
@@ -208,7 +208,18 @@ subprojects { project ->
pomModifications = []
modifyPom = { Closure modification -> project.pomModifications << modification }
}
+
+ task installToHomeDist(type: Upload) {
+ configuration = configurations.archives
+ repositories {
+ project.poms << mavenDeployer {
+ repository(url: homeDistDir.toURL())
+ }.pom
+ }
+ }
+ install.dependsOn installToHomeDist
+
uploadPublished {
repositories {
final url = project.version.endsWith("SNAPSHOT") ? "http://repo.grails.org/grails/libs-snapshots-local" :
View
@@ -178,16 +178,6 @@ task installResources(type: Copy) {
}
}
-// Make the install task for each subproject place the output jar into the dist dir
-subprojects {
- task installToHomeDist(type: Copy) {
- from jar.outputs.files
- into homeDistDir
- }
-
- install.dependsOn installToHomeDist
-}
-
task install(dependsOn: [populateDependencies, installResources] + subprojects*.install)
task zipDist(type: Zip, dependsOn: [sourcesJars, install]) {

0 comments on commit 44cca92

Please sign in to comment.