Skip to content

Commit

Permalink
🚀 Migrate to Maven Central Repository (#190, #194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnLin013 committed May 22, 2021
1 parent 6dac455 commit 7c887b3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 33 deletions.
15 changes: 9 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "guru.stefma.bintrayrelease:bintrayrelease:1.1.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}

Expand Down
29 changes: 20 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
android.useAndroidX=true
android.enableJetifier=true
android.debug.obsoleteApi=true

VERSION_CODE=20
VERSION_NAME=2.4.12

GROUP_ID=com.shawnlin
ARTIFACT_ID=number-picker
GROUP=io.github.ShawnLin013
POM_ARTIFACT_ID=number-picker

POM_NAME=Number Picker
POM_DESCRIPTION=The android library that provides a simple and customizable NumberPicker.
POM_INCEPTION_YEAR=2021
POM_URL=https://github.com/ShawnLin013/NumberPicker
POM_LICENSE_NAME=MIT
POM_LICENSE_URL=https://opensource.org/licenses/MIT
POM_LICENSE_DIST=repo
POM_DEVELOPER_ID=shawnlin013
android.useAndroidX=true
android.enableJetifier=true
android.debug.obsoleteApi=true

POM_LICENCE_NAME=MIT
POM_LICENCE_URL=https://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo

POM_SCM_URL=https://github.com/ShawnLin013/NumberPicker
POM_SCM_CONNECTION=scm:[email protected]:ShawnLin013/NumberPicker.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:ShawnLin013/NumberPicker.git

POM_DEVELOPER_ID=ShawnLin013
POM_DEVELOPER_NAME=Shawn Lin
POM_DEVELOPER_URL=https://github.com/ShawnLin013/NumberPicker
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
18 changes: 1 addition & 17 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: "guru.stefma.bintrayrelease"
apply plugin: 'com.vanniktech.maven.publish'

android {
compileSdkVersion 30
Expand All @@ -16,19 +16,3 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
}

version = VERSION_NAME
group = GROUP_ID
androidArtifact {
artifactId = ARTIFACT_ID
license {
name = POM_LICENSE_NAME
url = POM_LICENSE_URL
distribution = POM_LICENSE_DIST
}
}
publish {
userOrg = POM_DEVELOPER_ID
desc = POM_DESCRIPTION
website = POM_URL
}

0 comments on commit 7c887b3

Please sign in to comment.