aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/frontend/build.gradle.kts3
-rw-r--r--settings.gradle.kts2
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/base/frontend/build.gradle.kts b/plugins/base/frontend/build.gradle.kts
index f837575e..cadf3fae 100644
--- a/plugins/base/frontend/build.gradle.kts
+++ b/plugins/base/frontend/build.gradle.kts
@@ -5,7 +5,10 @@ plugins {
node {
version.set(libs.versions.node)
+
+ // https://github.com/node-gradle/gradle-node-plugin/blob/3.5.1/docs/faq.md#is-this-plugin-compatible-with-centralized-repositories-declaration
download.set(true)
+ distBaseUrl.set(null as String?) // Strange cast to avoid overload ambiguity
}
val npmRunBuild = tasks.getByName("npm_run_build") {
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 82b2093e..e3f493e3 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -25,7 +25,7 @@ dependencyResolutionManagement {
// Required by Gradle Node plugin: https://github.com/node-gradle/gradle-node-plugin/blob/3.5.1/docs/faq.md#is-this-plugin-compatible-with-centralized-repositories-declaration
exclusiveContent {
forRepository {
- ivy("https://nodejs.org/dist/") {
+ ivy("https://cache-redirector.jetbrains.com/nodejs.org/dist/") {
name = "Node Distributions at $url"
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
metadataSources { artifact() }