Skip to content

Ambiguous method overloading for method java.io.File#<init>. #64

@p4paul

Description

@p4paul

If the P4CONFIG environment variable is defined (for use with Perforce) I get a Gradle build error (see below for details...).

Looking at PerforceScmProvider.groovy it seems to be related to another environment variable WORKSPACE which was not defined (cause of the null error). Setting export WORKSPACE=. seems to workaround the issue.

Using Gradle Wrapper: gradle-6.1.1-all.zip

Gradle build error:

A problem occurred configuring root project 'p4search-filter'.
> Failed to notify project evaluation listener.
   > Ambiguous method overloading for method java.io.File#<init>.
     Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
        [class java.lang.String]
        [class java.net.URI]
        ...

Stack trace:

Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
        [class java.lang.String]
        [class java.net.URI]
        at nebula.plugin.info.scm.PerforceScmProvider.calculateModuleSource(PerforceScmProvider.groovy:23)
        at nebula.plugin.info.scm.PerforceScmProvider$calculateModuleSource.callCurrent(Unknown Source)

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