Skip to content

Commit

Permalink
Improve multiproject handling
Browse files Browse the repository at this point in the history
Fixes #5 thanks to @jskovjyskebankdk
Added tests to catch regressions
  • Loading branch information
danthegoodman committed Nov 24, 2014
1 parent 056c5b5 commit 674072d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/us/kirchmeier/capsule/task/Capsule.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Capsule extends Jar {
capsuleConfiguration = project.configurations.capsule
classifier = 'capsule'

project.gradle.afterProject {
project.afterEvaluate {
finalizeSettings()
if(_reallyExecutable != null){
doLast { makeReallyExecutable() }
Expand Down
1 change: 1 addition & 0 deletions src/test/gradle/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include 'subproject'
3 changes: 3 additions & 0 deletions src/test/gradle/subproject/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
task hello << {
println "Hello, I am a subproject"
}

0 comments on commit 674072d

Please sign in to comment.