From 07d7ed00a00b4069fae8000eeb870af353af2308 Mon Sep 17 00:00:00 2001 From: keluokeda <913918146@qq.com> Date: Mon, 20 Nov 2023 20:54:50 +0800 Subject: [PATCH] =?UTF-8?q?1=EF=BC=8C=E4=BF=AE=E6=94=B9build.gradle?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/build.gradle | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index ed61adb..69848fa 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -10,20 +10,31 @@ java { targetCompatibility = JavaVersion.VERSION_17 } -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - groupId = 'com.example.mylibrary' //groupId 随便取,jitpack不会使用 - artifactId = 'test' //test随便取,jitpack不会使用 - version = '1.0.1' //随便取,jitpack不会使用 - } +//afterEvaluate { +// publishing { +// publications { +// release(MavenPublication) { +// from components.release +// groupId = 'com.example.mylibrary' //groupId 随便取,jitpack不会使用 +// artifactId = 'test' //test随便取,jitpack不会使用 +// version = '1.0.1' //随便取,jitpack不会使用 +// } +// } +// } +//} + + +publishing { + publications { + mavenJava(MavenPublication) { + groupId = 'com.ke.music' + artifactId = 'music' + version = '0.1' + + from components.java } } } - - dependencies { api 'com.squareup.retrofit2:retrofit:2.9.0' implementation "com.squareup.moshi:moshi-kotlin:1.14.0"