Skip to content

Commit

Permalink
Issue #100: remove the extension properties finalization that is usel…
Browse files Browse the repository at this point in the history
…ess (explained in gradle/gradle#12974).
  • Loading branch information
bsautel committed May 2, 2020
1 parent f3fe46c commit b7693e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
16 changes: 0 additions & 16 deletions src/main/kotlin/com/github/gradle/node/NodeExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@ open class NodeExtension(project: Project) {
distBaseUrl.set("https://nodejs.org/dist")
}

internal fun finalize() {
workDir.finalizeValue()
npmWorkDir.finalizeValue()
yarnWorkDir.finalizeValue()
nodeModulesDir.finalizeValue()
version.finalizeValue()
npmVersion.finalizeValue()
yarnVersion.finalizeValue()
distBaseUrl.finalizeValue()
npmCommand.finalizeValue()
npxCommand.finalizeValue()
npmInstallCommand.finalizeValue()
yarnCommand.finalizeValue()
download.finalizeValue()
}

companion object {
const val NAME = "node"

Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/com/github/gradle/node/NodePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class NodePlugin : Plugin<Project> {
addTasks()
addNpmRule()
addYarnRule()
project.afterEvaluate {
nodeExtension.finalize()
}
}

private fun addGlobalTypes() {
Expand Down

0 comments on commit b7693e9

Please sign in to comment.