question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HUD will not build under gradle 5.0

See original GitHub issue

Maybe we should consider specifying a specific Gradle version for builds.

Build under Mac OS Sierra, homebrew for gradle and zap building from zap-hud master.

zap-hud lazaro.herrera$ gradle deployAndResetHud

> Task :buildSrc:compileJava FAILED
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/tasks/GenerateI18nJsFile.java:89: warning: [deprecation] newInputDirectory() in DefaultTask has been deprecated
        srcDir = newInputDirectory();
                 ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/tasks/GenerateI18nJsFile.java:91: warning: [deprecation] newOutputFile() in DefaultTask has been deprecated
        i18nJsFile = newOutputFile();
                     ^
error: warnings found and -Werror specified
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/tasks/ZapStart.java:85: error: getTimeout() in ZapStart cannot implement getTimeout() in Task
    public Property<Integer> getTimeout() {
                             ^
  return type Property<Integer> is not compatible with Property<Duration>
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/tasks/UpdateManifestFile.java:58: warning: [deprecation] newInputFile() in DefaultTask has been deprecated
        this.baseManifest = newInputFile();
                            ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/tasks/UpdateManifestFile.java:59: warning: [deprecation] newOutputDirectory() in DefaultTask has been deprecated
        this.outputDir = newOutputDirectory();
                         ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/jh/tasks/JavaHelpIndexer.java:100: warning: [deprecation] newInputFile() in DefaultTask has been deprecated
        this.helpset = newInputFile();
                       ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/jh/tasks/JavaHelpIndexer.java:101: warning: [deprecation] newOutputDirectory() in DefaultTask has been deprecated
        this.destinationDir = newOutputDirectory();
                              ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/AddOnPlugin.java:121: warning: [deprecation] directoryProperty() in ProjectLayout has been deprecated
        DirectoryProperty srcDir = project.getLayout().directoryProperty();
                                                      ^
/Users/lazaro.herrera/repos/zap-hud/buildSrc/src/main/java/org/zaproxy/gradle/AddOnPlugin.java:164: warning: [deprecation] directoryProperty() in ProjectLayout has been deprecated
        DirectoryProperty srcDir = project.getLayout().directoryProperty();
                                                      ^
2 errors
8 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSrc:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thc202commented, Dec 4, 2018

The Gradle tasks in the wiki are now correct, the links are also pointing to zaproxy. There’s still some outdated information regarding the HUD structure though.

2reactions
WriteCodeEverydaycommented, Dec 4, 2018

This should be informational, I don’t expect any action on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 4.x to 5.0
Try running gradle help --scan and view the deprecations view of the generated build scan. If there are no warnings, the Deprecations tab...
Read more >
Upgrading your build from Gradle 5.x to 6.0
... 5.x builds to Gradle 6.0. For migrating from Gradle 4.x, complete the 4.x to 5.0 guide first. ... Gradle no longer supports...
Read more >
Troubleshooting builds - Gradle User Manual
If not, here are some things you might see instead. ... For build performance issues (including “slow sync time”), see improving the ......
Read more >
The Gradle Wrapper - Gradle User Manual
By default that's the -bin distribution containing only the runtime but no sample code and documentation. The Gradle version used for executing the...
Read more >
Upgrading your build from Gradle 6.x to the latest
For migrating from Gradle 4.x or 5.x, see the older migration guide first. ... Encountering 'Could not find method X for arguments Y...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found