Skip to content

Commit

Permalink
Optimize dependencies in ktlint-cli module
Browse files Browse the repository at this point in the history
* Remove klob dependency as this was replaced with custom implementation in ktlint 0.41.0 via pinterest#999.
* Remove unused libs.kotlin.compiler dependency
  • Loading branch information
paul-dingemans committed Jan 26, 2023
1 parent 594a12c commit 008ea56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable",
kotlin-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-plugin-dev = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinDev" }
dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.7.20"
klob = "com.github.shyiko.klob:klob:0.2.1"
ec4j = "org.ec4j.core:ec4j-core:0.3.0"
picocli = "info.picocli:picocli:4.6.3"
logging = "io.github.microutils:kotlin-logging-jvm:2.1.23"
Expand Down
1 change: 0 additions & 1 deletion gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</key-servers>
<trusted-keys>
<trusted-key id="13ac2213964abe1d1c147c0e1939a2520bab1d90" group="org.freemarker" name="freemarker" version="2.3.31"/>
<trusted-key id="160a7a9cf46221a56b06ad64461a804f2609fd89" group="com.github.shyiko.klob" name="klob" version="0.2.1"/>
<trusted-key id="19beab2d799c020f17c69126b16698a4adf4d638">
<trusting group="org.checkerframework"/>
<trusting group="org.checkerframework" name="checker-qual" version="2.11.1"/>
Expand Down
20 changes: 10 additions & 10 deletions ktlint-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ tasks.shadowJar {

dependencies {
implementation(projects.ktlintCore)
implementation(projects.ktlintCliReporterBaseline)
implementation(projects.ktlintCliReporterCheckstyle)
implementation(projects.ktlintCliReporterJson)
implementation(projects.ktlintCliReporterFormat)
implementation(projects.ktlintCliReporterHtml)
implementation(projects.ktlintCliReporterCore)
implementation(projects.ktlintCliReporterPlain)
implementation(projects.ktlintCliReporterPlainSummary)
implementation(projects.ktlintCliReporterSarif)
implementation(projects.ktlintRulesetStandard)
implementation(projects.ktlintRulesetTest)
implementation(libs.kotlin.compiler)
implementation(libs.klob)
implementation(projects.ktlintRulesetTest) // Ruleset for dumping the AST of a file
implementation(libs.picocli)
implementation(libs.logback)

runtimeOnly(projects.ktlintCliReporterBaseline)
runtimeOnly(projects.ktlintCliReporterCheckstyle)
runtimeOnly(projects.ktlintCliReporterJson)
runtimeOnly(projects.ktlintCliReporterFormat)
runtimeOnly(projects.ktlintCliReporterHtml)
runtimeOnly(projects.ktlintCliReporterPlainSummary)
runtimeOnly(projects.ktlintCliReporterSarif)

testImplementation(libs.junit5)
testImplementation(libs.assertj)
testImplementation(libs.jimfs)
Expand Down

0 comments on commit 008ea56

Please sign in to comment.