Skip to content

Commit b17209d

Browse files
committed
Update build.gradle.kts
1 parent 6a567e9 commit b17209d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

amuze/build.gradle.kts

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import com.android.build.gradle.internal.component.ComponentCreationConfig
2+
import com.android.build.gradle.internal.scope.publishBuildArtifacts
13
import com.android.build.gradle.internal.tasks.factory.dependsOn
4+
import com.android.build.gradle.internal.utils.createPublishingInfoForLibrary
25
import com.android.ddmlib.Log
36
import com.vanniktech.maven.publish.SonatypeHost
47
import java.net.URI
@@ -11,6 +14,13 @@ plugins {
1114
// signing
1215
}
1316

17+
val ver = "0.1.0"
18+
val id = "amuze"
19+
val grp = "com.infbyte"
20+
21+
group = grp
22+
version = ver
23+
1424
android {
1525
namespace = "com.infbyte.amuze"
1626
compileSdk = 34
@@ -70,9 +80,6 @@ dependencies {
7080

7181
}
7282

73-
val ver = "0.1.0"
74-
val id = "amuze"
75-
7683
/* publishing {
7784
publications {
7885
create<MavenPublication>("release") {
@@ -100,19 +107,20 @@ val id = "amuze"
100107

101108
mavenPublishing {
102109

103-
coordinates("com.infbyte", id, ver)
110+
coordinates(grp, id, ver)
104111

105112
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
106113

107114
signAllPublications()
108115

109-
this.
110-
111116
pom {
112117
name.set("Amuze")
113118
description.set("Common functionality for media apps")
114119
inceptionYear.set("2024")
115120
url.set("https://github.com/shubertm/amuze")
121+
122+
packaging = "aar"
123+
116124
licenses {
117125
license {
118126
name.set("MIT License")

0 commit comments

Comments
 (0)