File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
build-logic/src/main/kotlin Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,8 @@ fun Project.configureDeployment(deployConfig: Deployed) {
52
52
}
53
53
54
54
val javadocJar = tasks.create(" javadocJar" , Jar ::class .java) {
55
+ from(tasks.getByName(" dokkaHtml" ))
55
56
archiveClassifier.set(" javadoc" )
56
-
57
- val dokkaJavadoc = tasks.getByName(" dokkaJavadoc" )
58
- dependsOn(dokkaJavadoc)
59
- from(dokkaJavadoc.property(" outputDirectory" ))
60
57
}
61
58
62
59
artifacts {
@@ -158,11 +155,13 @@ private fun MavenPublication.applyPublicationDetails(
158
155
artifactId = deployConfig.artifactId
159
156
version = deployConfig.currentVersion
160
157
158
+ // Attach artifacts
161
159
artifacts.clear()
160
+ val buildDir = project.layout.buildDirectory
162
161
if (isAndroid) {
163
- artifact(" ${project. buildDir} / outputs/aar/${project.name} -release.aar" )
162
+ artifact(buildDir.file( " outputs/aar/${project.name} -release.aar" ).get().asFile )
164
163
} else {
165
- artifact(" ${project. buildDir} / libs/${project.name} -${ version} .jar" )
164
+ artifact(buildDir.file( " libs/${project.name} -$version .jar" ) )
166
165
}
167
166
artifact(androidSourcesJar)
168
167
artifact(javadocJar)
You can’t perform that action at this time.
0 commit comments