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

@sbouchet

Description

@sbouchet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions