ballerina-platform / ballerina-lang

The Ballerina Programming Language
https://ballerina.io/
Apache License 2.0
3.67k stars 750 forks source link

Publishing modules to the local central repository is rejected in Windows #36708

Open Nuvindu opened 2 years ago

Nuvindu commented 2 years ago

Description:

I tried to use the following command to locally publish the graphql module.

./gradlew clean build -x test -x check publishToMavenLocal -PpublishToLocalCentral=true

The following error occurred in the publishing process.

Compiling source
        ballerina/graphql:1.3.2

Creating bala
        C:\github-repositories\master\module-ballerina-graphql\ballerina\build\bal_build_target\bala\ballerina-graphql-java11-1.3.2.bala
Publishing to the ballerina local central repository..
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
ballerina/graphql:1.3.2 [project repo -> central] 100% [==========] 266/266 KB
ballerina: invalid request received. missing platform libraries in bala file: [platform\java11\graphql-native-1.3.2.jar, platform\java11\graphql-compiler-plugin-1.3.2.jar]

OS, DB, other environment details and versions:

gayaldassanayake commented 2 years ago

Tried bal push with --repository=local and --repository local in Windows and did not encounter any issue. @ThisaruGuruge can you please check if there is no issue in the gradle script?

ThisaruGuruge commented 2 years ago

@niveathika @keizer619 can you check whether the Gradle plugin has any issue regarding this?