Closed abrolrahul closed 2 years ago
I was also not able to make it work with Github Packages. If author could find a bit of time to explain what we are doing wrong or provide a sample, that would be great. Otherwise great tool.
Could you share the output of the build when publishing?
I solved it by adding below block
mavenPublish {
releaseSigningEnabled = false
sonatypeHost = null
}
Adding the command and output which don't upload the artifact to GitHub packages.
./gradlew clean publish --no-daemon --no-parallel --warning-mode all
To honor the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Task :buildSrc:compileKotlin
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:inspectClassesForKotlinIC UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestKotlin NO-SOURCE
> Task :buildSrc:pluginUnderTestMetadata UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:validatePlugins UP-TO-DATE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
Configuration on demand is an incubating feature.
The following Kotlin source sets were configured but not added to any Kotlin compilation:
* androidAndroidTestRelease
* androidTestFixtures
* androidTestFixturesDebug
* androidTestFixturesRelease
You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets
Some Kotlin/Native targets cannot be built on this linux_x64 machine and are disabled:
* In project ':shared':
* targets 'iosArm64', 'iosX64' (can be built with one of the hosts: macos_x64, macos_arm64)
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.
> Task :androidApp:clean
> Task :shared:cleanIosX64Test UP-TO-DATE
> Task :shared:cleanAllTests UP-TO-DATE
The AbstractCompile.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the destinationDirectory property instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.2/userguide/upgrading_version_7.html#compile_task_wiring
> Task :shared:clean
> Task :shared:publish UP-TO-DATE
BUILD SUCCESSFUL in 30s
9 actionable tasks: 3 executed, 6 up-to-date
First, thanks for the amazing work guys. I discovered that my artifacts were not published with the command inside CircleCI.
/gradlew publish --no-daemon --no-parallel
Its a Kotlin multiplatform project. and when I run a build no repository is published in the Github Packages (empty). I tried without the plugin with a manual script in build.gradle and it is published correctly, Now I'm trying to publish with this plugin.
Here is my root build.gradle:
Here is my gradle.properties lib lvl:
Please let me know what I am doing wrong here. Any help would be appreciated.