File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
12import com.vanniktech.maven.publish.SonatypeHost
23
34plugins {
@@ -124,6 +125,14 @@ java {
124125// https://central.sonatype.com/artifact/dev.hotwire/core
125126
126127mavenPublishing {
128+ configure(
129+ AndroidSingleVariantLibrary (
130+ variant = " release" ,
131+ sourcesJar = true ,
132+ publishJavadocJar = false ,
133+ )
134+ )
135+
127136 coordinates(groupId = publishedGroupId, artifactId = publishedArtifactId, version = libVersionName)
128137
129138 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
@@ -170,4 +179,4 @@ publishing {
170179 credentials(PasswordCredentials ::class )
171180 }
172181 }
173- }
182+ }
Original file line number Diff line number Diff line change 1+ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
12import com.vanniktech.maven.publish.SonatypeHost
23
34plugins {
@@ -116,6 +117,14 @@ java {
116117// https://central.sonatype.com/artifact/dev.hotwire/navigation-fragments
117118
118119mavenPublishing {
120+ configure(
121+ AndroidSingleVariantLibrary (
122+ variant = " release" ,
123+ sourcesJar = true ,
124+ publishJavadocJar = false ,
125+ )
126+ )
127+
119128 coordinates(groupId = publishedGroupId, artifactId = publishedArtifactId, version = libVersionName)
120129
121130 publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
@@ -162,5 +171,4 @@ publishing {
162171 credentials(PasswordCredentials ::class )
163172 }
164173 }
165- }
166-
174+ }
You can’t perform that action at this time.
0 commit comments