6

It happened with the following log when I tried to deploy the library through Jitpack.
Anyone who knows the cause of the problem?

BUILD SUCCESSFUL in 482ms
3 actionable tasks: 1 executed, 2 up-to-date
Build tool exit code: 0
Looking for artifacts...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Looking for pom.xml in build directory and ~/.m2
2019-10-04T08:31:16.46490349Z
Exit code: 0

ERROR: No build artifacts found
libliboom
  • 532
  • 5
  • 17
  • Does this answer your question? [How to solve Jitpack "ERROR: No build artifacts found"?](https://stackoverflow.com/questions/68511986/how-to-solve-jitpack-error-no-build-artifacts-found) – deadfish Jan 19 '23 at 15:04

3 Answers3

0

Actually I took lots of hours to find this issue. But I found this, my issue was I added maven library into my application build.gradle but this was wrong you have to put all maven library into your library module build.gradle.

enter image description here

HandyPawan
  • 1,018
  • 1
  • 11
  • 16
0

I think OP forgot provide the solution. Here are the steps:

  1. In the library build.gradle add:

apply plugin: 'maven-publish'

  1. In the same build.gradle add this at the bottom:
publishing {
    publications {
        mavenJava(MavenPublication) {
            groupId = '{your_package_name}'
            artifactId = '{your library name}'
            version = '{your.library.version}'
        }
    }
}
deadfish
  • 11,996
  • 12
  • 87
  • 136
-2

I found why it happened and solved it. I declare it as an application, not library.
That's why jitpack couldn't find the build artifacts. I left how I changed it with this solution.

I hope someone can get help from this troubleshooting.

libliboom
  • 532
  • 5
  • 17