Skip to content

Commit

Permalink
Use Kotlin DSL assignment support more
Browse files Browse the repository at this point in the history
Issue: n/a
  • Loading branch information
mlopatkin committed May 16, 2024
1 parent 26cf3c1 commit 96eff58
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package name.mlopatkin.andlogview.building

import org.gradle.api.Project
import org.gradle.api.provider.Provider
import org.gradle.kotlin.dsl.assign

/**
* Helper methods to access environment parameters: is build run by CI server? what revision is checked out?
Expand Down Expand Up @@ -45,8 +46,8 @@ abstract class BuildEnvironment(project: Project) {

val gitRevision = providers.of(GitRevisionValueSource::class.java) {
parameters {
repoRoot.set(projectDir)
fallback.set("n/a")
repoRoot = projectDir
fallback = "n/a"
}
}

Expand Down

0 comments on commit 96eff58

Please sign in to comment.