ballerina-platform / plugin-gradle

Ballerina Gradle plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use latest gradle plugin(v2.2.2) with standard libraries

Thevakumar-Luheerathan opened this issue · comments

Description:
latest gradle plugin gives following error log when I try to use with standard libraries( It works with https://github.com/ballerina-platform/module-ballerina-http and not with https://github.com/ballerina-platform/module-ballerina-io)

* What went wrong:
Execution failed for task ':io-ballerina:unpackJballerinaTools'.
> Could not resolve all dependencies for configuration ':io-ballerina:jbalTools'.
   > Could not find org.ballerinalang:jballerina-tools:null.
     Searched in the following locations:
       - file:/Users/luheerathan/.m2/repository/org/ballerinalang/jballerina-tools/null/jballerina-tools-null.pom
       - https://maven.wso2.org/nexus/content/repositories/releases/org/ballerinalang/jballerina-tools/null/jballerina-tools-null.pom
       - https://maven.wso2.org/nexus/content/groups/wso2-public/org/ballerinalang/jballerina-tools/null/jballerina-tools-null.pom
       - https://repo.maven.apache.org/maven2/org/ballerinalang/jballerina-tools/null/jballerina-tools-null.pom
       - https://maven.pkg.github.com/ballerina-platform/ballerina-lang/org/ballerinalang/jballerina-tools/null/jballerina-tools-null.pom
     Required by:
         project :io-ballerina

Steps to reproduce:

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

I checked with @TharmiganK. He compared the gradle files of these project(http,io) and asked me to add the below configuration to the root project build.gradle. It works.

subprojects {

    configurations {
        jbalTools
    }
    dependencies {
        jbalTools ("org.ballerinalang:jballerina-tools:${ballerinaLangVersion}") {
            transitive = false
        }
    }
}

I checked with @TharmiganK. He compared the gradle files of these project(http,io) and asked me to add the below configuration to the root project build.gradle. It works.

subprojects {

    configurations {
        jbalTools
    }
    dependencies {
        jbalTools ("org.ballerinalang:jballerina-tools:${ballerinaLangVersion}") {
            transitive = false
        }
    }
}

This configuration needs to be added by all the standard libraries. ballerina-platform/ballerina-library#6106 tracks the progress.