Skip to content

Commit

Permalink
Update publish scripts and release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhong169 committed Jul 19, 2018
1 parent ae739be commit d001437
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.github.duanhong169:text-button:1.0.4'
implementation 'com.jakewharton:butterknife:8.7.0'
implementation 'com.github.duanhong169:colorpicker:1.0.3'
implementation 'com.github.duanhong169:colorpicker:1.0.4'
// implementation project(':colorpicker')
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
testImplementation 'junit:junit:4.12'
Expand Down
18 changes: 18 additions & 0 deletions colorpicker/bintrayv1.gradle → colorpicker/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'

group = publishedGroupId // Maven Group ID for the artifact
version = libraryVersion

if (project.hasProperty("android")) { // Android libraries
Expand Down Expand Up @@ -31,6 +33,22 @@ artifacts {
archives sourcesJar
}

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact

// Add your description here
description libraryDescription
}
}
}
}

publishing {
publications {
MyPublication(MavenPublication) {
Expand Down
5 changes: 2 additions & 3 deletions colorpicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ext {
artifact = 'colorpicker'

libraryDescription = 'A `ColorPicker` for android'
libraryVersion = '1.0.3'
libraryVersion = '1.0.4'
}

android {
Expand Down Expand Up @@ -42,5 +42,4 @@ dependencies {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

apply from: 'installv1.gradle'
apply from: 'bintrayv1.gradle'
apply from: 'bintray.gradle'
19 changes: 0 additions & 19 deletions colorpicker/installv1.gradle

This file was deleted.

0 comments on commit d001437

Please sign in to comment.