[Build] Validate Gradle plugins on install
This commit is contained in:
+1
-1
@@ -841,7 +841,7 @@ tasks {
|
||||
|
||||
register("examplesTest") {
|
||||
dependsOn("dist")
|
||||
(project(":examples").subprojects + project(":kotlin-gradle-subplugin-example")).forEach { p ->
|
||||
project(":examples").subprojects.forEach { p ->
|
||||
dependsOn("${p.path}:check")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,12 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
named("install") {
|
||||
dependsOn(named("validatePlugins"))
|
||||
}
|
||||
}
|
||||
|
||||
val commonSourceSet = createGradleCommonSourceSet()
|
||||
reconfigureMainSourcesSetForGradlePlugin(commonSourceSet)
|
||||
publishShadowedJar(sourceSets[SourceSet.MAIN_SOURCE_SET_NAME], commonSourceSet)
|
||||
|
||||
@@ -128,10 +128,6 @@ tasks {
|
||||
enableStricterValidation.set(true)
|
||||
}
|
||||
|
||||
named("install") {
|
||||
dependsOn(named("validatePlugins"))
|
||||
}
|
||||
|
||||
withType<DokkaTask>().configureEach {
|
||||
dokkaSourceSets.configureEach {
|
||||
includes.from("Module.md")
|
||||
|
||||
Reference in New Issue
Block a user