Hope this can help other developers.
Jitpack documentation is not updated. Be sure you are not using:
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'com.apollographql.apollo'
id 'kotlinx-serialization'
id 'com.github.dcendents.android-maven' <------
}
Replace com.github.dcendents.android-maven
with maven-publish
. com.github.dcendents.android-maven
is marked as deprecated. Then you can just add your configurations to public to maven in your library build gradle.
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release
// You can then customize attributes of the publication as shown below.
groupId = 'com.test.sdk.library'
artifactId = 'test'
version = 0.0.1 //(whatever version you want)
}
}
}
}