intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Must not use `executable` property on `Test` together with `javaLauncher` property

Open jansorg opened this issue 2 years ago • 4 comments

Describe the bug I updated from 1.13.2 to 1.13.3. With the new version, the following error is shown for a ./gradlew clean build, but I don't have defined any of these properties.

> Task :core-shared:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core-shared:test'.
> Must not use `executable` property on `Test` together with `javaLauncher` property

To Reproduce Sorry, this isn't a public repository.

Expected behavior

Environment:

  • OS: Linux
  • Gradle IntelliJ Plugin Version 1.13.2
  • Gradle Version: Gradle Wrapper 7.5.1

jansorg avatar Apr 01 '23 10:04 jansorg

Seems it's an issue with Gradle 7.x. Are you able to switch to 8.x?

hsz avatar Apr 01 '23 11:04 hsz

same to me for Gradle 7. After Upgrade to Gradle 8 the erro ris gone

Build Error; https://github.com/MCMicS/jenkins-control-plugin/actions/runs/4589330799

MCMicS avatar Apr 02 '23 15:04 MCMicS

Ditto, Gradle 7.5.1. https://github.com/jenkinsci/idea-stapler-plugin/pull/148/checks?check_run_id=12414944325 Upgrading to Gradle 8 noted

duemir avatar Apr 03 '23 01:04 duemir

Unfortunately I can't switch to Gradle 8.x for some of my projects because there's at least one other Gradle plugin incompatible with 8.x.

jansorg avatar Apr 05 '23 19:04 jansorg

JBR is now in 2.0 registered from the scratch using the IntelliJPlatformJavaLauncher class — Gradle respects that in the same way as already provided Java Runtimes.

hsz avatar Jul 14 '24 19:07 hsz