From b1a4655d615e33b34109ac9fd2e4f245a7fd6468 Mon Sep 17 00:00:00 2001 From: Mao Date: Tue, 2 Mar 2021 18:55:20 +0900 Subject: [PATCH 1/2] Prepare release plugin --- build.gradle | 5 +++-- gradle.properties | 13 +++++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- lib/build.gradle | 13 +------------ 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/build.gradle b/build.gradle index da1ed35..37b8b22 100644 --- a/build.gradle +++ b/build.gradle @@ -18,9 +18,10 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' + classpath 'com.android.tools.build:gradle:4.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.novoda:bintray-release:0.9.2' + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2' + classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.20' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/gradle.properties b/gradle.properties index 23339e0..f900dbe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,3 +19,16 @@ android.useAndroidX=true android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official + +POM_NAME=android-tab-animation +POM_DESCRIPTION=Easily create TabLayout.Tab animations that sync with the scrolling progress of ViewPager. +POM_INCEPTION_YEAR=2021 + +POM_URL=https://github.com/cats-oss/android-tab-animation/ +POM_SCM_URL=https://github.com/cats-oss/android-tab-animation/ +POM_SCM_CONNECTION=scm:git:git://github.com/cats-oss/android-tab-animation.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/cats-oss/android-tab-animation.git + +POM_LICENCE_NAME=The Apache Software License, Version 2.0 +POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENCE_DIST=repo diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e569a48..1cd1699 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip diff --git a/lib/build.gradle b/lib/build.gradle index 7d244f9..db3087d 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' -apply plugin: 'com.novoda.bintray-release' +apply plugin: "com.vanniktech.maven.publish" android { compileSdkVersion compile_sdk_version @@ -34,14 +34,3 @@ dependencies { androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } - -publish { - bintrayUser = project.hasProperty('bintrayUser') ? bintrayUser : '' - bintrayKey = project.hasProperty('bintrayKey') ? bintrayKey : '' - userOrg = 'cats-oss' - groupId = 'jp.co.cyberagent.android' - artifactId = 'tab-animation' - publishVersion = version_name - desc = 'Easily create TabLayout.Tab animations that sync with the scrolling progress of ViewPager' - website = 'https://github.com/cats-oss/android-tab-animation' -} From 5373b71c7c53f628c7c47318f0f01f60dbc87e3e Mon Sep 17 00:00:00 2001 From: Mao Date: Tue, 2 Mar 2021 19:01:39 +0900 Subject: [PATCH 2/2] Add pom --- .gitignore | 2 ++ gradle.properties | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 61f9421..a5dbaab 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,5 @@ fastlane/readme.md # NDK .externalNativeBuild .cxx + +release/* diff --git a/gradle.properties b/gradle.properties index f900dbe..23a523e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,6 +20,10 @@ android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official +GROUP=jp.co.cyberagent.android +POM_ARTIFACT_ID=tab-animation +VERSION_NAME=1.0.0 + POM_NAME=android-tab-animation POM_DESCRIPTION=Easily create TabLayout.Tab animations that sync with the scrolling progress of ViewPager. POM_INCEPTION_YEAR=2021