question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global check for Multi-Project Builds

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Tapchicomacommented, Jun 11, 2019

Pass to Gradle --continue option

0reactions
Globegittercommented, Jun 13, 2019

Yep that works - thanks for the responses.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found