How to solve the error of "ERROR: No build artifacts found" after the following build successful msg?

Viewed 4761

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
2 Answers

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.

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

Related