Skip to content

Commit c54a941

Browse files
committed
Fix publish
1 parent b170e28 commit c54a941

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

amuze/build.gradle.kts

+6-18
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import com.android.build.gradle.internal.component.ComponentCreationConfig
2-
import com.android.build.gradle.internal.scope.publishBuildArtifacts
3-
import com.android.build.gradle.internal.tasks.factory.dependsOn
4-
import com.android.build.gradle.internal.utils.createPublishingInfoForLibrary
5-
import com.android.ddmlib.Log
61
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
72
import com.vanniktech.maven.publish.SonatypeHost
8-
import java.net.URI
93

104
plugins {
115
alias(libs.plugins.android.library)
@@ -15,15 +9,13 @@ plugins {
159
// signing
1610
}
1711

18-
val ver = "0.1.0"
19-
val id = "amuze"
20-
val grp = "com.infbyte"
21-
22-
group = grp
23-
version = ver
12+
val versionName = "0.1.0"
13+
val artifactId = "amuze"
14+
val groupId = "com.infbyte"
2415

2516
android {
2617
namespace = "com.infbyte.amuze"
18+
version = versionName
2719
compileSdk = 34
2820

2921
defaultConfig {
@@ -86,7 +78,7 @@ dependencies {
8678
create<MavenPublication>("release") {
8779
groupId = "com.infbyte"
8880
artifactId = id
89-
version = ver
81+
version = versionName
9082
afterEvaluate {
9183
from(components["release"])
9284
}
@@ -108,11 +100,7 @@ dependencies {
108100

109101
mavenPublishing {
110102

111-
coordinates(grp, id, ver)
112-
113-
configure(
114-
AndroidSingleVariantLibrary("release", false, false)
115-
)
103+
coordinates(groupId, artifactId, versionName)
116104

117105
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
118106

0 commit comments

Comments
 (0)