@@ -11,45 +11,41 @@ buildscript {
1111allprojects {
1212 addRepos(repositories)
1313
14- afterEvaluate {
15- if (plugins. hasPlugin(' com.android.library' )) {
16- apply plugin : ' maven-publish'
17-
18- publishing {
19- publications {
20- maven(MavenPublication ) {
14+ if (plugins. hasPlugin(' com.android.library' ) || project. plugins. hasPlugin(' com.android.library' )) {
15+ apply plugin : ' maven-publish'
16+
17+ publishing {
18+ publications {
19+ release(MavenPublication ) {
20+ // afterEvaluateμμ μ€μ νλ λ΄μ©λ€μ μ¬κΈ°λ‘ μ΄λ
21+ afterEvaluate {
2122 from components. release
23+ }
2224
23- // κ³΅ν΅ λ©νλ°μ΄ν°
24- pom {
25- url = ' https://github.com/sieunju/httptracking'
26-
27- licenses {
28- license {
29- name = ' MIT License'
30- url = ' https://opensource.org/licenses/MIT'
31- distribution = ' repo'
32- }
33- }
25+ pom {
26+ name = project. name
27+ description = ' HTTP tracking library for Android'
28+ url = ' https://github.com/sieunju/httptracking'
3429
35- developers {
36- developer {
37- id = ' sieunju'
38- name = ' Dev Ju'
39- email = ' j.sieun73@gmail.com'
40- }
30+ licenses {
31+ license {
32+ name = ' MIT License'
33+ url = ' https://opensource.org/licenses/MIT'
4134 }
35+ }
4236
43- scm {
44- connection = ' scm:git:git://github.com/sieunju/httptracking.git'
45- developerConnection = ' scm:git:ssh://git@github.com:sieunju/httptracking.git'
46- url = ' https://github.com/sieunju/httptracking'
37+ developers {
38+ developer {
39+ id = ' sieunju'
40+ name = ' Dev ju'
41+ email = ' j.sieun73@gmail.com'
4742 }
43+ }
4844
49- issueManagement {
50- system = ' GitHub '
51- url = ' https:// github.com/ sieunju/httptracking/issues '
52- }
45+ scm {
46+ connection = ' scm:git:git://github.com/sieunju/httptracking.git '
47+ developerConnection = ' scm:git:ssh://git@ github.com: sieunju/httptracking.git '
48+ url = ' https://github.com/sieunju/httptracking '
5349 }
5450 }
5551 }
@@ -58,6 +54,6 @@ allprojects {
5854 }
5955}
6056
61- task clean ( type : Delete ) {
57+ tasks . register( ' clean ' , Delete ) {
6258 delete rootProject. buildDir
6359}
0 commit comments