Skip to content

Commit

Permalink
Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
derkicker committed Oct 4, 2024
1 parent 7ea2c25 commit 5b81311
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
18 changes: 1 addition & 17 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 19 additions & 2 deletions WheelPicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'maven-publish'
def version = '1.1.3'
android {
compileSdkVersion 28
Expand All @@ -16,15 +16,32 @@ android {
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
}
}/*
publish {
userOrg = 'aigestudio'
groupId = 'cn.aigestudio.wheelpicker'
artifactId = "WheelPicker"
publishVersion = "${version}"
desc = 'Simple and fantastic wheel view in realistic effect for android.'
website = 'https://github.com/AigeStudio/WheelPicker'
}*/

task androidSourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.srcDirs
}

project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar
}
}
}
}

dependencies {
implementation 'com.google.code.gson:gson:2.8.2'
}
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven {
Expand All @@ -9,12 +8,10 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.novoda:bintray-release:0.9.1'
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Aug 28 18:34:40 CST 2024
#Fri Oct 04 12:19:53 YEKT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 5b81311

Please sign in to comment.