-
|
Currently, no source JARs are published on jitpack, see e.g. https://jitpack.io/com/github/mapsforge/vtm/vtm/0.27.0/ or https://jitpack.io/com/github/mapsforge/vtm/vtm-android/0.27.0/. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
If you know how to do this, please let us know. |
Beta Was this translation helpful? Give feedback.
-
|
You have something like this in your build.gradle files: publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}Replace it by something like this: // define how to build the source JAR
task sourceJar(type: Jar) {
from sourceSets.main.allJava
//from sourceSets.main.resources // probably not required for you - depends on whether you have source relevant stuff in your resources
archiveClassifier = 'sources'
}
publishing {
publications {
maven(MavenPublication) { // or mavenJar(...)
from components.java
artifact sourceJar // <-- add sourceJar artifact to the publication
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Publish sources and Javadoc jars is implemented via #1290. https://jitpack.io/com/github/mapsforge/vtm/vtm/master-503538fb71-1/ |
Beta Was this translation helpful? Give feedback.
Publish sources and Javadoc jars is implemented via #1290.
https://jitpack.io/com/github/mapsforge/vtm/vtm/master-503538fb71-1/