From eb414b449a2244e9ecfe5949fbca20d612ffc72b Mon Sep 17 00:00:00 2001 From: Little Mango <244261996@qq.com> Date: Tue, 3 Jul 2018 18:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BC=A0=20Jcenter?= =?UTF-8?q?=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加上传 Jcenter 脚本 --- StackLayoutManager/build.gradle | 22 +++++++++++++++++++++- build.gradle | 11 ++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/StackLayoutManager/build.gradle b/StackLayoutManager/build.gradle index 5348e0f..764c0b4 100644 --- a/StackLayoutManager/build.gradle +++ b/StackLayoutManager/build.gradle @@ -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'] } diff --git a/build.gradle b/build.gradle index 5bd00d6..da66fea 100644 --- a/build.gradle +++ b/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