ktlint-gradle
gradle-plugins-first-steps
Our great sponsors
ktlint-gradle | gradle-plugins-first-steps | |
---|---|---|
3 | 1 | |
1,392 | 3 | |
- | - | |
7.3 | 6.3 | |
24 days ago | 6 days ago | |
Kotlin | Kotlin | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ktlint-gradle
-
[Question] disable ktlint rules with ktlint-gradle version 12.0.2
buildscript { . . . dependencies { classpath 'com.android.tools.build:gradle:8.1.4' classpath "org.jlleitschuh.gradle:ktlint-gradle:12.0.2" // https://github.com/JLLeitschuh/ktlint-gradle/releases . . } } allprojects { . . . apply plugin: "org.jlleitschuh.gradle.ktlint" }
-
Ktlint automation for a team
Ktlint Gradle has a task addKtlintFormatGitPreCommitHook. Never used it though.
-
Supercharge your Kotlin Project
ext { // https://github.com/JLLeitschuh/ktlint-gradle/releases ktlintPluginVersion = "10.2.0" } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32" ## KTLINT DEPENDENCY classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintPluginVersion" }
gradle-plugins-first-steps
-
First Steps Developing Custom Gradle Plugins
In this demo we will use a sample multi-module Gradle project named my-gradle-project with two modules and a custom hello task defined as:
What are some alternatives?
ktlint - An anti-bikeshedding Kotlin linter with built-in formatter
groovy - Apache Groovy: A powerful multi-faceted programming language for the JVM platform
kotlinter-gradle - Painless, fast ktlint plugin for Gradle
diktat - Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
spring-petclinic-kotlin - Kotlin version of Spring Petclinic
detekt - Static code analysis for Kotlin
gotrue-kt - Kotlin Client for GoTrue API
carthage-gradle-plugin - Gradle plugin for Carthage
hands_on_kotlin - Experiments with Compose and latest architecture patterns in Kotlin
kotlin-android-template - Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️
keycloakmigration - Manage your Keycloak configuration with code.
ktfmt-gradle - A Gradle plugin to apply ktfmt to your builds, and reformat you Kotlin source code like a glimpse 🧹🐘