Created
June 21, 2019 15:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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