From 028c1eb4584d0dbf22690b6278022ae53ab4cff2 Mon Sep 17 00:00:00 2001 From: Paul Dingemans Date: Tue, 20 Feb 2024 17:24:14 +0100 Subject: [PATCH] Revert "Remove dependency org.codehaus.janino:janino (#2545)" (#2558) Janino is required for logback-test.xml conditional configuration so that trace-logging in unit test can be automatically enabled using an environment variable This (partially) reverts commit a6e6b557396ef7c4a2e884dbac828670d682cd94. --- gradle/libs.versions.toml | 3 +++ ktlint-test/build.gradle.kts | 1 + 2 files changed, 4 insertions(+) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d79532006b..55a88c9929 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -27,6 +27,9 @@ poko = "dev.drewhamilton.poko:poko-gradle-plugin:0.15.2" # TODO: Update "renovate.json" once logback-classic is updated to 1.4 (once java8 support for ktlint is dropped) logback = "ch.qos.logback:logback-classic:1.3.14" logcaptor = "io.github.hakky54:logcaptor:2.9.2" +# Required for logback-test.xml conditional configuration so that trace-logging in unit test can be automatically enabled using an +# environment variable +janino = "org.codehaus.janino:janino:3.1.11" # Testing libraries junit5 = "org.junit.jupiter:junit-jupiter:5.10.2" assertj = "org.assertj:assertj-core:3.25.3" diff --git a/ktlint-test/build.gradle.kts b/ktlint-test/build.gradle.kts index 2362226683..6262c050d4 100644 --- a/ktlint-test/build.gradle.kts +++ b/ktlint-test/build.gradle.kts @@ -8,5 +8,6 @@ dependencies { implementation(projects.ktlintCliRulesetCore) api(libs.assertj) api(libs.junit5) + api(libs.janino) api(libs.jimfs) }