[Build] Validate Gradle plugins on install

This commit is contained in:
Alexander Likhachev
2022-04-11 23:27:57 +03:00
parent eda759ba31
commit 079400796a
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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")