[go: nahoru, domu]

Skip to content

Commit

Permalink
Use bintray plugin to publish the maven artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Sep 6, 2016
1 parent 0c54828 commit 2573319
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.novoda:bintray-release:0.3.4'
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'com.novoda.bintray-release'

repositories {
jcenter()
Expand All @@ -32,24 +32,12 @@ android {
buildToolsVersion "23.0.3"

defaultConfig {
versionName "1.11.0"
versionName "1.12.0"
minSdkVersion 14
targetSdkVersion 23
}
}

version android.defaultConfig.versionName
group = "org.wordpress"
archivesBaseName = "utils"

signing {
required {
has("release") && project.properties.containsKey("signing.keyId") && project.properties.containsKey("signing.secretKeyRingFile")
}
sign configurations.archives
}


android.libraryVariants.all { variant ->
task("generate${variant.name}Javadoc", type: Javadoc) {
description "Generates Javadoc for $variant.name."
Expand All @@ -62,3 +50,16 @@ android.libraryVariants.all { variant ->
exclude '**/R.java'
}
}

publish {
artifactId = 'utils'
userOrg = 'wordpress-mobile'
groupId = 'org.wordpress'
uploadName = 'utils'
description = 'Utils library for Android'
publishVersion = android.defaultConfig.versionName
licences = ['MIT', 'GPL']
website = 'https://github.com/wordpress-mobile/WordPress-Utils-Android/'
dryRun = 'false'
autoPublish = 'true'
}

0 comments on commit 2573319

Please sign in to comment.