Skip to content

Commit 434d6cd

Browse files
authored
Cleanup maven publication (#336)
1 parent 081adc2 commit 434d6cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ configure(
204204
dependency.version.isNullOrBlank()
205205
}
206206
}
207-
artifact(sourcesJar)
208-
artifact(dokkaJavadocJar)
209207
addPom()
210208
signPublication(this@configure)
211209
}
@@ -222,10 +220,10 @@ configure(
222220
}
223221

224222
// Use `./gradlew publishAllPublicationsToBuildRepository -Pversion=1.5`
225-
// to publish to `./build/repository` directory.
223+
// to publish to `/build/repository` directory in the root project.
226224
maven {
227225
name = "Build"
228-
url = uri(layout.buildDirectory.dir("repository"))
226+
url = uri(rootProject.layout.buildDirectory.dir("repository"))
229227
}
230228
}
231229
}

0 commit comments

Comments
 (0)