summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-05-15 16:18:59 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-05-15 16:18:59 +0200
commit3908391fd67da33df2d43c1b01a9e1709dd73c05 (patch)
tree1d34c185a02b29f3faa871607cc24eecbf5d2f15
parentcbff4835536f4f1418880ac0ddae75beb0009875 (diff)
build(web/api): Ensure Node.js is downloaded
This change updates the build configuration in order to ensure that Node.js is downloaded onto the build system. This drops an explicit dependency on a system installation of Node.js and allows us to ensure that the project is built against the correct Node.js version.
-rw-r--r--gradle/libs.versions.toml2
-rw-r--r--opendc-web/opendc-web-ui/build.gradle.kts4
2 files changed, 5 insertions, 1 deletions
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index a7956ce3..a6eac3ed 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -5,7 +5,7 @@ clikt = "3.4.1"
config = "1.4.2"
commons-math3 = "3.6.1"
dokka = "1.6.10"
-gradle-node = "3.2.1"
+gradle-node = "3.3.0"
hadoop = "3.3.1"
jackson = "2.13.2"
jandex-gradle = "0.12.0"
diff --git a/opendc-web/opendc-web-ui/build.gradle.kts b/opendc-web/opendc-web-ui/build.gradle.kts
index c0e3fcf6..f8c0a45b 100644
--- a/opendc-web/opendc-web-ui/build.gradle.kts
+++ b/opendc-web/opendc-web-ui/build.gradle.kts
@@ -38,6 +38,10 @@ sourceSets {
}
}
+node {
+ download.set(true)
+}
+
val formatTask = tasks.register<NpmTask>("format") {
args.set(listOf("run", "format"))
dependsOn(tasks.npmInstall)