mirror of
https://github.com/leaf-wai/StackLayoutManager.git
synced 2026-03-16 09:32:49 +08:00
增加上传 Jcenter 脚本
增加上传 Jcenter 脚本
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'com.novoda.bintray-release'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
@ -8,7 +9,7 @@ android {
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 27
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionName "1.0.0"
|
||||
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
||||
@ -21,6 +22,9 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -34,4 +38,20 @@ dependencies {
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
tasks.withType(Javadoc) {
|
||||
options{ encoding "UTF-8"
|
||||
charSet 'UTF-8'
|
||||
links "http://docs.oracle.com/javase/7/docs/api"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publish{
|
||||
userOrg = 'jinliancheng120'
|
||||
groupId = 'com.littlemango'
|
||||
artifactId = 'stacklayoutmanager'
|
||||
publishVersion = '1.0.0'
|
||||
desc = 'A RecyclerView.LayoutManager implementation which provides functionality to show a group of stack view.'
|
||||
website = 'https://github.com/LittleMango/StackLayoutManager'
|
||||
licences = ['MIT']
|
||||
}
|
||||
|
||||
11
build.gradle
11
build.gradle
@ -9,9 +9,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
classpath 'com.novoda:bintray-release:0.8.1'
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,8 +18,15 @@ allprojects {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
tasks.withType(Javadoc) {
|
||||
options{ encoding "UTF-8"
|
||||
charSet 'UTF-8'
|
||||
links "http://docs.oracle.com/javase/7/docs/api"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
tasks.getByPath(":StackLayoutManager:releaseAndroidJavadocs").enabled = false
|
||||
|
||||
Reference in New Issue
Block a user