Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jarSearchableOptions task fails with search/jarSearchableOptions is a duplicate under Gradle 7.0 #678

Closed
PawelLipski opened this issue May 27, 2021 · 3 comments
Assignees
Labels
Milestone

Comments

@PawelLipski
Copy link

PawelLipski commented May 27, 2021

Plugin version: v1.0
v0.7.3 wasn't affected under Gradle 7.0.

I'm not sure if running under Gradle 6.x works around this error; I can check if needed.

I can also provide the entire offending state of the repository if needed 🕵🏻

> Task :buildSearchableOptions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.ide.ui.laf.darcula.DarculaLaf to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY
WARNING: Please consider reporting this to the maintainers of com.intellij.ide.ui.laf.darcula.DarculaLaf
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-05-27 16:29:32,208 [   3114]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
Starting searchable options index builder
2021-05-27 16:29:40,681 [  11587]   WARN - #com.intellij.ui.jcef.JBCefApp - JCEF is manually disabled in headless env via 'ide.browser.jcef.headless.enabled=false' 
Found 215 configurables
Searchable options index builder completed

> Task :jarSearchableOptions FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jarSearchableOptions'.
> Entry search/jarSearchableOptions is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.0/dsl/org.gradle.api.file.CopySpec.html#org.gradle.api.file.CopySpec:duplicatesStrategy for details.

@hsz
Copy link
Member

hsz commented May 28, 2021

@PawelLipski, thanks for reporting – please provide sources to reproduce this issue.

@PawelLipski
Copy link
Author

Pls take a look at https://github.com/VirtusLab/git-machete-intellij-plugin, branch chore/212-eap (current tip at a297482bb40bd6e65a68d7441b1155080f4882fb).

Run ./gradlew buildPlugin (use Java 11).

Also, see a failed run in CI: https://app.circleci.com/pipelines/github/VirtusLab/git-machete-intellij-plugin/4065/workflows/f54a1d08-bbc6-4f80-8a93-4b6dc79d6b25/jobs/4276

@hsz hsz self-assigned this Jun 1, 2021
@hsz hsz added this to the 1.0.1 milestone Jun 1, 2021
hsz added a commit that referenced this issue Jun 1, 2021
@hsz
Copy link
Member

hsz commented Jun 1, 2021

Thanks, Paweł – I was able to track and finally fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants