File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
build-logic/convention/src/main/kotlin Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ class PublishingConventionPlugin : Plugin<Project> {
71
71
extensions.configure<PublishingExtension > {
72
72
publications {
73
73
create<MavenPublication >(" aar" ) {
74
+ artifactId = if (project.name == " library" ) {
75
+ " android-maps-utils"
76
+ } else {
77
+ null
78
+ }
79
+
74
80
afterEvaluate {
75
81
from(components[" release" ])
76
82
}
@@ -104,9 +110,13 @@ class PublishingConventionPlugin : Plugin<Project> {
104
110
}
105
111
repositories {
106
112
maven {
107
- val releasesRepoUrl = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2/" )
108
- val snapshotsRepoUrl = uri(" https://oss.sonatype.org/content/repositories/snapshots/" )
109
- url = if (project.version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl
113
+ val releasesRepoUrl =
114
+ uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2/" )
115
+ val snapshotsRepoUrl =
116
+ uri(" https://oss.sonatype.org/content/repositories/snapshots/" )
117
+ url = if (project.version.toString()
118
+ .endsWith(" SNAPSHOT" )
119
+ ) snapshotsRepoUrl else releasesRepoUrl
110
120
credentials {
111
121
username = project.findProperty(" sonatypeToken" ) as String?
112
122
password = project.findProperty(" sonatypeTokenPassword" ) as String?
Original file line number Diff line number Diff line change @@ -35,13 +35,7 @@ tasks.register<Delete>("clean") {
35
35
delete(rootProject.buildDir)
36
36
}
37
37
38
-
39
38
allprojects {
40
39
group = " com.google.maps.android"
41
40
version = " 3.10.0"
42
- val projectArtifactId = if (project.name == " library" ) {
43
- " android-maps-utils"
44
- } else {
45
- null
46
- }
47
41
}
You can’t perform that action at this time.
0 commit comments