Giter VIP home page Giter VIP logo

Comments (7)

kingthorin avatar kingthorin commented on July 20, 2024 1

Java 17 requires Gradle 7.3.

I just started looking into upgrading ZAP builds to Gradle 7.3.3 yesterday 🙂.

from zap-hud.

thc202 avatar thc202 commented on July 20, 2024 1

It fails with same error:

Execution failed for task ':installNpmDeps'.
> Error while evaluating property 'environmentProvider' of task ':installNpmDeps'
   > java.lang.reflect.UndeclaredThrowableException (no error message)

The npm plugin might need to be updated.

from zap-hud.

LIttleAncientForestKami avatar LIttleAncientForestKami commented on July 20, 2024 1

@kingthorin that is one fast tempo, oh Oakenshield!

√ zap-hud  +main+ $ java -version
openjdk version "17" 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
√ zap-hud  +main+ $ ./gradlew runZap                                   [INSERT]
Downloading https://services.gradle.org/distributions/gradle-7.3.3-all.zip
...............10%...............20%...............30%...............40%...............50%...............60%................70%...............80%...............90%...............100%

Welcome to Gradle 7.3.3!

Here are the highlights of this release:
 - Easily declare new test suites in Java projects
 - Support for Java 17
 - Support for Scala 3

For more details see https://docs.gradle.org/7.3.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

> Task :installNpmDeps FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':installNpmDeps'.
> Error while evaluating property 'environmentProvider' of task ':installNpmDeps'
   > java.lang.reflect.UndeclaredThrowableException (no error message)

* 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

BUILD FAILED in 1m 21s
11 actionable tasks: 11 executed

I ran build scan for details, here you go: https://scans.gradle.com/s/yxpjba3ajjsku/

from zap-hud.

thc202 avatar thc202 commented on July 20, 2024 1

I didn't check if a newer version of the plugin was available just assumed it would need a newer one (since this version is broken).

from zap-hud.

kingthorin avatar kingthorin commented on July 20, 2024

@LIttleAncientForestKami ciuld you update your cloned copy and give this a try again?

from zap-hud.

kingthorin avatar kingthorin commented on July 20, 2024

Thanks!

from zap-hud.

kingthorin avatar kingthorin commented on July 20, 2024

There "seems" to be something more to this. The dependencyUpdates task doesn't seem to suggest anything that I would think is related, it claims the npm plugin is up-to-date:

$ ./gradlew dependencyUpdates
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

> Task :dependencyUpdates

------------------------------------------------------------
: Project Dependency Updates (report to plain text file)
------------------------------------------------------------

The following dependencies are using the latest milestone version:
 - org.hamcrest:hamcrest-all:1.3
 - org.ysb33r.nodejs.npm:org.ysb33r.nodejs.npm.gradle.plugin:0.12.1
 - org.zaproxy.add-on:org.zaproxy.add-on.gradle.plugin:0.8.0
 - org.zaproxy.crowdin:org.zaproxy.crowdin.gradle.plugin:0.2.1

The following dependencies have later milestone versions:
 - com.diffplug.spotless:com.diffplug.spotless.gradle.plugin [5.17.1 -> 6.2.0]
 - com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin [0.39.0 -> 0.41.0]
 - io.github.bonigarcia:selenium-jupiter [3.4.0 -> 4.0.1]
     https://bonigarcia.dev/selenium-jupiter
 - org.junit.jupiter:junit-jupiter-api [5.8.1 -> 5.8.2]
     https://junit.org/junit5/
 - org.junit.jupiter:junit-jupiter-engine [5.8.1 -> 5.8.2]
     https://junit.org/junit5/
 - org.junit.jupiter:junit-jupiter-params [5.8.1 -> 5.8.2]
     https://junit.org/junit5/
 - org.mockito:mockito-all [1.10.19 -> 2.0.2-beta]
     http://www.mockito.org

Gradle release-candidate updates:
 - Gradle: [7.3.3 -> 7.4-rc-1]

Generated report file C:\Rick\ZAP_DEV\git\zap-hud\build\dependencyUpdates\report.txt

BUILD SUCCESSFUL in 3m 20s
10 actionable tasks: 10 executed

from zap-hud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.