diff --git a/gradle/build.go b/gradle/build.go index bca0a53..3b703f9 100644 --- a/gradle/build.go +++ b/gradle/build.go @@ -98,7 +98,7 @@ func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error) { return libcnb.BuildResult{}, fmt.Errorf("unable to stat %s\n%w", command, err) } else { if err := os.Chmod(command, 0755); err != nil { - fmt.Printf("WARNING: unable to chmod %s:\n%s", command, err) + b.Logger.Bodyf("WARNING: unable to chmod %s:\n%s", command, err) } }