Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - JitPack Build is broken #1616

Open
LitschiW opened this issue Aug 4, 2023 · 1 comment
Open

[Bug] - JitPack Build is broken #1616

LitschiW opened this issue Aug 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@LitschiW
Copy link

LitschiW commented Aug 4, 2023

Describe the bug
See https://jitpack.io/#inspectit/inspectit-ocelot/
The build log reports an error

⚠️ ERROR: No build artifacts found
Expected artifacts in: $HOME/.m2/repository/rocks/inspectit/ocelot/inspectit-ocelot-
config/SNAPSHOT

This seems to have broken when going from 1.13 to 1.14.
Which was the switch from gradle 6.5 to gradle 7. (so from the maven to maven-publish plugin)
image
It looks like jitpackcannot find any artifacts/poms.

Executing ./gradlew clean -Pgroup=com.github.inspectit -Pversion=2.5.3 -xtest assemble publishToMavenLocal locally does not install any packages either.

I fixed this by adding

publishing {
    publications {
        _sdk_(MavenPublication) {
            from components.java
        }
    }
}

to the sdk project build.gradle. Since this is the one I want to use.
This might also fix the jitpack-problem.

To Reproduce
Steps to reproduce the behavior:

  1. Create a release. ;)
@LitschiW LitschiW added the bug Something isn't working label Aug 4, 2023
@LitschiW
Copy link
Author

@EddeCCC ping ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant