Created
March 14, 2019 13:33
-
-
Save jitpack-io/45322b496498371d189fe1a557f6093b to your computer and use it in GitHub Desktop.
Publish Android sources jar on Gradle 5+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'digital.wup.android-maven-publish' | |
group = 'com.github.User' | |
version = '0.1' | |
task sourceJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | |
classifier "sources" | |
} | |
publishing { | |
publications { | |
mavenAar(MavenPublication) { | |
groupId group | |
artifactId 'library' | |
version version | |
artifact(sourceJar) | |
from components.android | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment