Skip to content

Commit

Permalink
fix ENABLE_DEBUG env var
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Jun 5, 2024
1 parent 6f69b83 commit 4afd05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {

val integrationTest by tasks.registering {
description = "Lifecycle task for running all integration tests."
group = LifecycleBasePlugin.VERIFICATION_GROUP
group = VERIFICATION_GROUP
}

tasks.withType<Test>().configureEach {
Expand Down
3 changes: 1 addition & 2 deletions dokka-integration-tests/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import dokkabuild.tasks.GitCheckoutTask
import dokkabuild.utils.systemProperty
import org.gradle.api.tasks.PathSensitivity.NAME_ONLY
import org.gradle.api.tasks.PathSensitivity.RELATIVE
import org.gradle.language.base.plugins.LifecycleBasePlugin.VERIFICATION_GROUP
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Disabled

plugins {
Expand Down Expand Up @@ -64,7 +63,7 @@ kotlin {
tasks.withType<Test>().configureEach {
val enableDebug = providers.environmentVariable("ENABLE_DEBUG")
inputs.property("enableDebug", enableDebug).optional(true)
environment("ENABLE_DEBUG", enableDebug.get())
environment("ENABLE_DEBUG", enableDebug.getOrElse("false"))
}

val templateSettingsGradleKts = layout.projectDirectory.file("projects/template.settings.gradle.kts")
Expand Down

0 comments on commit 4afd05c

Please sign in to comment.