inspectIT / inspectit-ocelot

inspectIT Ocelot - Java agent for collecting application performance, tracing and behavior data
http://www.inspectit.rocks/
Apache License 2.0
202 stars 69 forks source link

[Bug] - JitPack Build is broken #1616

Open LitschiW opened 1 year ago

LitschiW commented 1 year ago

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 commented 11 months ago

@EddeCCC ping ;)