inspectit-ocelot icon indicating copy to clipboard operation
inspectit-ocelot copied to clipboard

[Bug] - JitPack Build is broken

Open LitschiW opened this issue 1 year ago • 1 comments

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 avatar Aug 04 '23 17:08 LitschiW

@EddeCCC ping ;)

LitschiW avatar Sep 27 '23 12:09 LitschiW