ktlint-gradle

(โ˜… 1,714)

A ktlint gradle plugin

  • .editorconfig
  • .gitattributes
  • .gitignore
  • build.gradle.kts
  • CHANGELOG.md
  • CONTRIBUTING.md
  • gradle.properties
  • gradlew
  • gradlew.bat
  • LICENSE.txt
  • README.md
  • settings.gradle.kts

# Installation Guide

1. Get the code
git clone https://github.com/JLLeitschuh/ktlint-gradle

Downloads the entire project code from GitHub to your computer.

cd ktlint-gradle

Moves into the project folder you just downloaded.

2. Gradle (Java/Kotlin)

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • JDK (Java) Required to build and run Java/Kotlin projects.
  • Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
id "org.jlleitschuh.gradle.ktlint" version "<current_version>"

Builds the project using Gradle.

id("org.jlleitschuh.gradle.ktlint") version "<current_version>"

Builds the project using Gradle.

ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }

Builds the project using Gradle.

url "https://plugins.gradle.org/m2/"

Builds the project using Gradle.

classpath "org.jlleitschuh.gradle:ktlint-gradle:<current_version>"

Builds the project using Gradle.

โœ… A BUILD SUCCESSFUL message means it worked. The output is created under build/.

Pulled directly from this repo's README.

// repository documentation