Skip to content

Instantly share code, notes, and snippets.

@rock3r
Created June 21, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rock3r/8a5fdb47a8f7c324f388f05c39b15b15 to your computer and use it in GitHub Desktop.
Save rock3r/8a5fdb47a8f7c324f388f05c39b15b15 to your computer and use it in GitHub Desktop.
A Gradle Kotlin DSL task to enumerate the resolved Kotlin plugin version for all subprojects
tasks.register("kotlinPluginVersions") {
description = "Shows the resolved Kotlin plugin version for all subprojects"
group = "documentation"
doLast {
subprojects.forEach { subproject ->
System.err.println("****** Project ${subproject.name} plugins ******")
subproject.plugins.filterIsInstance<KotlinBasePluginWrapper>()
.forEach {
System.err.println("Kotlin plugin ${it.kotlinPluginVersion}")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment