Skip to content

Instantly share code, notes, and snippets.

@prof18
Last active September 28, 2019 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prof18/ac3a632e7604436f483220c435b6edef to your computer and use it in GitHub Desktop.
Save prof18/ac3a632e7604436f483220c435b6edef to your computer and use it in GitHub Desktop.
apply plugin: 'com.jfrog.bintray'
group 'com.your.awesome.lib'
version '1.0.0'
project.ext {
mavGitUrl = 'https://github.com/prof18/AwesomeLib.git'
mavProjectName = 'AwesomeLib'
mavLibraryLicenses = ["Apache-2.0":'http://www.apache.org/licenses/LICENSE-2.0.txt']
mavLibraryDescription = "An Awesome Android library"
mavPublishToMavenLocal = true
mavSiteUrl = 'https://github.com/prof18/AwesomeLib'
}
def properties = new Properties()
properties.load(new FileInputStream("local.properties"))
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
publications = ['Production']
configurations = ['archives']
override = true
pkg {
repo = 'maven'
name = 'AwesomeLib'
description = "It's an awesome lib"
publicDownloadNumbers = true
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/prof18/AwesomeLib'
version {
name = this.version
desc = "Version ${this.version}"
released = new Date()
vcsTag = this.version
}
}
}
apply from: 'https://raw.githubusercontent.com/sky-uk/gradle-maven-plugin/master/gradle-mavenizer.gradle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment