Global check for Multi-Project Builds
See original GitHub issueI am quite new to kotlin and gradle so maybe there is something I am misconfiguring but I would like to be able to apply the plugin “globally”, i.e. that running gradle check/ktlintCheck
runs on the sources of all my projects. I managed to define things in such a way that I get a gradle project:check
task for each project but it is still quite tedious to have to run it for each project.
If I create a ktlint task myself, e.g.
task("execute", JavaExec::class) {
group = "verification"
description = "Check Kotlin code style."
main = "com.pinterest.ktlint.Main"
classpath(configurations.ktlint)
args("--experimental")
}
it runs on all of my sources.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Structuring and Building a Software Component with Gradle
In this case, Gradle will look for a build file in the app directory. We can view the structure of a multi-project build...
Read more >Gradle multi-project build - where to put global resources?
I updated my answer based in this proposed solution: you can configure the sourceSets directly in the root project build, with no need...
Read more >Gradle Multi-Project Builds in 100 Seconds - YouTube
Gradle multi - project builds (a.k.a. multi - module ) are a way to structure your software project to encourage reuse and maintainability ......
Read more >Gradle Multi-Project Builds for Maven Users - OctoPerf
How to create a multi-modules Maven project in the Gradle world? This guide uses the Kraken project as an example to help you...
Read more >Getting Started With Gradle: Creating a Multi-Project Build
Configuring the Projects that Are Included in Our Multi-Project Build · Create the settings.gradle file to the root directory of the root project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Pass to Gradle
--continue
optionYep that works - thanks for the responses.