Skip to content

Commit

Permalink
chore: support node version overriding via property
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed May 25, 2023
1 parent 2fcf70f commit cb9f1a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.github.gciatto.kt.mpp.log
import io.github.gciatto.kt.mpp.nodeVersion

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
Expand All @@ -19,7 +20,7 @@ gitSemVer {
assignGitSemanticVersion()
}

log("version: $version")
log("version: $version", LogLevel.LIFECYCLE)

repositories {
mavenCentral()
Expand All @@ -39,3 +40,8 @@ kotlin {
}
}
}

project.findProperty("nodeVersion")?.let { it.toString() }?.takeIf { it.isNotBlank() }?.let {
nodeVersion(it)
log("override NodeJS version: $it", LogLevel.LIFECYCLE)
}

0 comments on commit cb9f1a0

Please sign in to comment.