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"