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

3

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
Banger answered 4/10, 2019 at 9:13 Comment(1)
Does this answer your question? How to solve Jitpack "ERROR: No build artifacts found"?Telephoto
B
-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.

Banger answered 4/10, 2019 at 14:22 Comment(2)
No proper explanationLilliamlillian
Solution link is not availableWyckoff
C
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

Chuffy answered 17/5, 2020 at 17:48 Comment(0)
T
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}'
        }
    }
}
Telephoto answered 19/1, 2023 at 15:2 Comment(0)
B
-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.

Banger answered 4/10, 2019 at 14:22 Comment(2)
No proper explanationLilliamlillian
Solution link is not availableWyckoff

© 2022 - 2024 — McMap. All rights reserved.