Skip to content

Instantly share code, notes, and snippets.

@jbruchanov
Created April 11, 2019 20:58
Show Gist options
  • Save jbruchanov/d5ea1ad51ee18cf9c85051b541ae01c0 to your computer and use it in GitHub Desktop.
Save jbruchanov/d5ea1ad51ee18cf9c85051b541ae01c0 to your computer and use it in GitHub Desktop.
Maven publish
apply plugin: 'maven-publish'
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
group = 'publishing'
}
publishing {
publications {
maven(MavenPublication) {
groupId "com.scurab"
artifactId "anuitor"
version "0.9.99"
artifact bundleReleaseAar
artifact sourcesJar
pom {
name = "AnUitor"
description = "AnUitor"
url = "http://anuitor.scurab.com/"
}
}
}
repositories {
mavenLocal()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment