Skip to content

Invalid publication 'mavenJava': artifact file does not exist: 'path_to/build/libs/myproj-searchableOptions.jar' using new gradle intellij 2.0.0 #354

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

Open
sbouchet opened this issue Oct 7, 2024 · 0 comments

Comments

@sbouchet
Copy link

sbouchet commented Oct 7, 2024

Hi,

i'm using the new gradle intellij-plugin for my project ( https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html ) and i'm getting an error when i'm trying to disable the buildSearchableOptions feature.

as indicated in the doc, i want to disable the buildSearchableOptions from my build using

intellijPlatform {
    buildSearchableOptions = false
}

in my gradle.kts file.

it builds fine, but as soon i want to publish the plugin on our nexus, i'm getting this message :
Invalid publication 'mavenJava': artifact file does not exist: 'path_to/build/libs/myproj-searchableOptions.jar
meaning the publish task is not correctly using the above flag.
my guess is the publish task blindly tries to use the java output that somhow contains the searchableoptions output.

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

No branches or pull requests

1 participant