From 754d433be248a3f6292b023777c57b79fe9c41ae Mon Sep 17 00:00:00 2001 From: TxcA <447358255@qq.com> Date: Thu, 31 Mar 2022 21:47:26 +0800 Subject: [PATCH] Updated 1.0.0 --- README.md | 4 ++-- build.gradle | 7 ++----- library/build.gradle | 9 ++++++++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7671716..3e6ae8b 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ - **更方便的替换规则** - 支持String、正则、[ReplaceRule]()及相应的Array|List 替换规则 + 支持String、正则、[ReplaceRule](https://txca.github.io/SpannableX/replace/) 及相应的Array|List 替换规则 -*更多详情参考:* +***更多详情参考:*** **[ ⭐ 使用文档 ](https://txca.github.io/SpannableX/)** **[ ⚙ API文档 ](https://txca.github.io/SpannableX/api/)** diff --git a/build.gradle b/build.gradle index 2f121ed..c0d14e4 100644 --- a/build.gradle +++ b/build.gradle @@ -3,9 +3,6 @@ plugins { id 'com.android.application' version '7.1.2' apply false id 'com.android.library' version '7.1.2' apply false id 'org.jetbrains.kotlin.android' version '1.6.10' apply false - id 'org.jetbrains.dokka' version "1.6.10" -} - -task clean(type: Delete) { - delete rootProject.buildDir + id 'org.jetbrains.dokka' version '1.6.10' + id 'com.vanniktech.maven.publish' version '0.19.0' } \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index 5853e2b..f7f79c3 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -2,6 +2,7 @@ plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' id 'org.jetbrains.dokka' + id 'com.vanniktech.maven.publish' } android { @@ -48,4 +49,10 @@ dependencies { // https://github.com/liangjingkanji/spannable api 'com.github.liangjingkanji:spannable:1.0.5' -} \ No newline at end of file +} + +plugins.withId("com.vanniktech.maven.publish") { + mavenPublish { + sonatypeHost = "S01" + } +}