Tanish Ranjan
07/05/2024, 6:38 PMLooking for pom.xml in build directory and ~/.m2
Found artifact: com.github.tanish-ranjan:jetpack_compose_components:1.0.0
Found artifact: Compose Components:jetpack_compose_components:unspecified
Found artifact: com.github.tanish-ranjan:jetpack_compose_components:1.0.0
2024-07-05T18:29:27.588745741Z
Exit code: 0
ā ļø ERROR: No build artifacts found
Expected artifacts in: $HOME/.m2/repository/com/github/tanish-ranjan/jetpack_compose_components/1.0.0Tanish Ranjan
07/05/2024, 6:39 PMTanish Ranjan
07/05/2024, 6:40 PMVampire
07/05/2024, 6:56 PMreleaseSourcesJar uses an output of copyAar without inputs and outputs wired properly, so the build failed.
Besides that, I highly recommend you do not use JitPack for normal publishing. It is somewhat ok for testing snapshots of branches or commits if no snapshot builds are published, but it is slow, unreliable, buggy, and conceptually broken for normal releases. Imho if you want to publish, you should do so properly to Maven Central. šVampire
07/05/2024, 7:00 PMcopyAar task.
It is a Copy task with destination dir projectDir, so everything in projectDir is considered an output of that task and so any task that uses any file as input will trigger that error.
Instead use an "untyped" task, define the input file and output file explicitly via outputs.file and inputs.file and use a copy { ... } block within doLast { ... } instead, then the copyAar task works the same but has only that explicit file as output.Tanish Ranjan
07/05/2024, 7:09 PMcopyAar task as you said. If it doesn't work then I will give maven central another go.Vampire
07/05/2024, 7:17 PMTanish Ranjan
07/05/2024, 7:56 PM