Skip to content

Commit

Permalink
one more place where inputs might be null
Browse files Browse the repository at this point in the history
  • Loading branch information
crotwell committed Oct 27, 2017
1 parent e1290c0 commit f6d52c4
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,14 @@ class MacAppBundlePlugin implements Plugin<Project> {
task.description = "Create a dmg containing the .app and optional background image"
task.group = GROUP
task.inputs.dir("${->project.buildDir}/${->project.macAppBundle.appOutputDir}")
task.inputs.property("backgroundImage", { project.macAppBundle.backgroundImage } )
// optional inputs
// code below should be changed to
// task.inputs.property("...", {...}).optional(true)
// once minimal supported Gradle version is 4.3
// task.inputs.property("backgroundImage", { project.macAppBundle.backgroundImage } ).optional(true)
if(project.macAppBundle.backgroundImage) task.inputs.property("MacAppBundlePlugin backgroundImage", {project.macAppBundle.backgroundImage})
task.outputs.file("${->project.buildDir}/${->project.macAppBundle.dmgOutputDir}/${->project.macAppBundle.dmgName}.dmg")
project.afterEvaluate {
Expand Down

0 comments on commit f6d52c4

Please sign in to comment.