Skip to content

Commit

Permalink
1,修改build.gradle文件。
Browse files Browse the repository at this point in the history
  • Loading branch information
keluokeda committed Nov 20, 2023
1 parent 2c86a60 commit 07d7ed0
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 07d7ed0

Please sign in to comment.