From fdb90ba91385c48c810f71016d9deedf06cd8456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=BF=8A=E4=BD=91?= Date: Mon, 26 Jun 2023 22:03:09 +0800 Subject: [PATCH] feat() add publis plugin #branch=main --- .gitignore | 1 + wytrace/.gitignore | 2 +- wytrace/build.gradle | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5bd175f..cf24d63 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ .cxx local.properties .idea +gradle.properties \ No newline at end of file diff --git a/wytrace/.gitignore b/wytrace/.gitignore index c591fde..c73c14a 100644 --- a/wytrace/.gitignore +++ b/wytrace/.gitignore @@ -1,2 +1,2 @@ /build -.cxx \ No newline at end of file +.cxx diff --git a/wytrace/build.gradle b/wytrace/build.gradle index 22d0102..4c550a9 100644 --- a/wytrace/build.gradle +++ b/wytrace/build.gradle @@ -1,5 +1,6 @@ plugins { id 'com.android.library' + id 'maven-publish' } android { @@ -48,6 +49,29 @@ android { } } +publishing { + publications { + aar(MavenPublication) { + groupId 'com.wy.lib' + artifactId 'wytrace' + version '1.0.0' + // 打包 aar 文件 + artifact("$buildDir/outputs/aar/wytrace-release.aar") + } + } +// repositories { +// maven { +// // 配置 Maven 仓库信息 +// url mavenRepositoryUrl +// credentials { +// username mavenRepositoryUsername +// password mavenRepositoryPassword +// } +// } +// } +} + + dependencies { api 'com.bytedance.android:shadowhook:1.0.7' } \ No newline at end of file