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) {
5252 }
5353
5454 val javadocJar = tasks.create(" javadocJar" , Jar ::class .java) {
55+ from(tasks.getByName(" dokkaHtml" ))
5556 archiveClassifier.set(" javadoc" )
56-
57- val dokkaJavadoc = tasks.getByName(" dokkaJavadoc" )
58- dependsOn(dokkaJavadoc)
59- from(dokkaJavadoc.property(" outputDirectory" ))
6057 }
6158
6259 artifacts {
@@ -158,11 +155,13 @@ private fun MavenPublication.applyPublicationDetails(
158155 artifactId = deployConfig.artifactId
159156 version = deployConfig.currentVersion
160157
158+ // Attach artifacts
161159 artifacts.clear()
160+ val buildDir = project.layout.buildDirectory
162161 if (isAndroid) {
163- artifact(" ${project. buildDir} / outputs/aar/${project.name} -release.aar" )
162+ artifact(buildDir.file( " outputs/aar/${project.name} -release.aar" ).get().asFile )
164163 } else {
165- artifact(" ${project. buildDir} / libs/${project.name} -${ version} .jar" )
164+ artifact(buildDir.file( " libs/${project.name} -$version .jar" ) )
166165 }
167166 artifact(androidSourcesJar)
168167 artifact(javadocJar)
You can’t perform that action at this time.
0 commit comments