diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7..35eb1dd 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 8405e6a..7aa8e81 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This library provides some useful classes for RecyclerView. ```groovy dependencies { - compile 'me.relex:recyclerpager:1.0.1' + compile 'me.relex:recyclerpager:1.0.3' } ``` diff --git a/SmartTabLayout2/build.gradle b/SmartTabLayout2/build.gradle index 3b2cef8..04be0f2 100644 --- a/SmartTabLayout2/build.gradle +++ b/SmartTabLayout2/build.gradle @@ -19,6 +19,6 @@ android { } dependencies { - implementation "me.relex:recyclerpager:1.0.1" + implementation "me.relex:recyclerpager:1.0.3" api project(':SmartTabLayout') } diff --git a/app/build.gradle b/app/build.gradle index d330209..66ef16f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,6 +24,6 @@ android { dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' - implementation "me.relex:recyclerpager:1.0.1" + implementation "me.relex:recyclerpager:1.0.3" implementation project(':SmartTabLayout2') } diff --git a/recyclerpager/build.gradle b/recyclerpager/build.gradle index 7b82bc9..3fc5edc 100644 --- a/recyclerpager/build.gradle +++ b/recyclerpager/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' -version = "1.0.1" +version = "1.0.3" android { compileSdkVersion 28 @@ -8,8 +8,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 28 - versionCode 101 - versionName "1.0.1" + versionCode 103 + versionName "1.0.3" } buildTypes { diff --git a/recyclerpager/upload-jcenter.gradle b/recyclerpager/upload-jcenter.gradle index 4893cda..c28b63b 100644 --- a/recyclerpager/upload-jcenter.gradle +++ b/recyclerpager/upload-jcenter.gradle @@ -34,14 +34,31 @@ install { } } } - task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs classifier = 'sources' + from android.sourceSets.main.java.srcDirs +} +task javadoc(type: Javadoc) { + source = android.sourceSets.main.java.srcDirs + android.libraryVariants.all { variant -> + if (variant.name == 'release') { + owner.classpath += variant.javaCompiler.classpath + } + } + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + options { + encoding 'utf-8' + charSet 'utf-8' + } +} +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir } artifacts { archives sourcesJar + archives javadocJar } bintray {