@@ -4,12 +4,12 @@ buildscript {
44 }
55 dependencies {
66 classpath ' com.android.tools.build:gradle:2.1.2'
7+ classpath ' com.novoda:bintray-release:0.3.4'
78 }
89}
910
1011apply plugin : ' com.android.library'
11- apply plugin : ' maven'
12- apply plugin : ' signing'
12+ apply plugin : ' com.novoda.bintray-release'
1313
1414repositories {
1515 jcenter()
@@ -32,68 +32,13 @@ android {
3232 buildToolsVersion " 23.0.3"
3333
3434 defaultConfig {
35- versionName " 1.11 .0"
35+ versionName " 1.12 .0"
3636 minSdkVersion 14
3737 targetSdkVersion 23
3838 }
3939}
4040
41- version android. defaultConfig. versionName
42- group = " org.wordpress"
43- archivesBaseName = " utils"
44-
45- signing {
46- required {
47- has(" release" ) && project. properties. containsKey(" signing.keyId" ) && project. properties. containsKey(" signing.secretKeyRingFile" )
48- }
49- sign configurations. archives
50- }
51-
52- uploadArchives {
53- repositories {
54- mavenDeployer {
55- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
56-
57- repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
58- authentication(userName : project. properties. ossrhUsername, password : project. properties. ossrhPassword)
59- }
60-
61- snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
62- authentication(userName : project. properties. ossrhUsername, password : project. properties. ossrhPassword)
63- }
64-
65- pom. project {
66- name ' WordPress-Utils-Android'
67- packaging ' aar'
68- description ' Utils lib for WordPress-Android'
69- url ' https://github.com/wordpress-mobile/WordPress-Utils-Android'
70- scm {
71- connection ' scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git'
72- developerConnection ' scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git'
73- url ' https://github.com/wordpress-mobile/WordPress-Utils-Android'
74- }
75-
76- licenses {
77- license {
78- name ' The MIT License (MIT)'
79- url ' http://opensource.org/licenses/MIT'
80- }
81- }
82-
83- developers {
84- developer {
85- id ' maxme'
86- name ' Maxime Biais'
87- email ' maxime@automattic.com'
88- }
89- }
90- }
91- }
92- }
93- }
94-
9541android. libraryVariants. all { variant ->
96-
9742 task(" generate${ variant.name} Javadoc" , type : Javadoc ) {
9843 description " Generates Javadoc for $variant . name . "
9944 source = variant. javaCompile. source
@@ -105,3 +50,16 @@ android.libraryVariants.all { variant ->
10550 exclude ' **/R.java'
10651 }
10752}
53+
54+ publish {
55+ artifactId = ' utils'
56+ userOrg = ' wordpress-mobile'
57+ groupId = ' org.wordpress'
58+ uploadName = ' utils'
59+ description = ' Utils library for Android'
60+ publishVersion = android. defaultConfig. versionName
61+ licences = [' MIT' , ' GPL' ]
62+ website = ' https://github.com/wordpress-mobile/WordPress-Utils-Android/'
63+ dryRun = ' false'
64+ autoPublish = ' true'
65+ }
0 commit comments