Closed tessus closed 8 years ago
The tasks are run because "assemble" depends on them, basically if you add the macAppBundle plugin,you are saying that a app is an output of the build and so it is generated. I believe this is the expected behavior, for example if you use the war plugin, the war file will be generated on gradle build. If you don't want everything generated, you can always just call gradle jar to only build the jar file.
But the windows issue should be fixed in 2.1.5. Now assemble depends on createDmg on mac, but on createAppZip on windows and linux.
Hmm, so build includes assemble and assemble includes the 10 tasks. Ok, I'll try 2.1.5. Thanks.
I've added the following to my
build.gradle
file:When I run a
gradlew build
, all tasks from your bundle are run, exceptcodeSign
,createAppZip
,runSetFile
.I never specified it anywhere that any of the tasks are run. The problem is that on Windows a
gradlew build
tries to run createDmg and fails (naturally).Why are any MacAppBundle tasks run when doing a
gradlew build
?Is there a way that none of the MacAppBundle tasks are run for a
gradlew build
?