[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
This commit is contained in:
committed by
Space Team
parent
5de2b5aeb4
commit
6d5f1c84a7
@@ -1,4 +1,5 @@
|
||||
@file:Suppress("unused") // usages in build scripts are not tracked properly
|
||||
@file:JvmName("RepoArtifacts")
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.gradle.api.Project
|
||||
@@ -219,6 +220,7 @@ fun Jar.addEmbeddedSources(configurationName: String = "embedded") {
|
||||
}
|
||||
}
|
||||
|
||||
@JvmOverloads
|
||||
fun Project.javadocJar(body: Jar.() -> Unit = {}): TaskProvider<Jar> {
|
||||
configure<JavaPluginExtension> {
|
||||
withJavadocJar()
|
||||
Reference in New Issue
Block a user