Provides a convenient wrapper plugin over the ktlint project. This plugin creates convenient tasks in your Gradle project that run ktlint checks or do code auto format. The plugin can be applied to any project, but only activates if that project has the kotlin plugin applied. The assumption being that you would not want to lint code you weren't compiling. This plugin was written using the new API available for the Gradle script Kotlin builds. This API is available in new versions of Gradle. To test KtLint snapshots add following configuration into project build script. This plugin just adds special tasks that can generate IntelliJ IDEA codestyle rules using ktlint. The version of ktlint used by default may change between patch versions of this plugin. If you don't want to inherit these changes then make sure you lock your version.

Features

  • Build script snippet for new plugin mechanism introduced in Gradle 2.1
  • Minimal supported Gradle version: 6.8
  • Build script snippet for use in all Gradle versions
  • Optionally apply plugin to all project modules
  • Plugin supports KtLint baseline
  • Test KtLint snapshots

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Ktlint Gradle

Ktlint Gradle Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ktlint Gradle!

Additional Project Details

Operating Systems

Windows

Programming Language

Kotlin

Related Categories

Kotlin Browser Extensions and Plugins

Registered

2023-02-23