Skip to content

Commit

Permalink
refactor: Remove jCenter publishing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamim Attafi authored and Tamim Attafi committed Aug 31, 2021
1 parent 7e741aa commit a0a5b97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 37 deletions.
10 changes: 1 addition & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
classpath 'com.android.tools.build:gradle:4.2.2'
}
}

Expand All @@ -16,11 +13,6 @@ allprojects {
google()
mavenCentral()
}
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}

task clean(type: Delete) {
Expand Down
24 changes: 2 additions & 22 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,5 @@ android.useAndroidX=true
android.enableJetifier=true
android.debug.obsoleteApi=true

VERSION_CODE=21
VERSION_NAME=2.4.13

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_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
VERSION_CODE=23
VERSION_NAME=2.4.15
7 changes: 3 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
apply plugin: 'com.android.library'
apply plugin: 'com.vanniktech.maven.publish'

android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 15
targetSdkVersion 30
versionCode VERSION_CODE as int
versionName VERSION_NAME
versionCode 23
versionName "2.4.15"
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
}
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0-beta01'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.5.0-alpha02'
implementation project(':library')
}

0 comments on commit a0a5b97

Please sign in to comment.