aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-04-05 22:20:39 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-04-05 22:20:39 +0200
commitf438a9f38d41521d9e2c05f314e38946e969eaf5 (patch)
tree6b720edf91447548fd1db6ebcc8af0358ed14490 /buildSrc/src
parentchore(deps): bump dependencies (diff)
downloadrefinery-f438a9f38d41521d9e2c05f314e38946e969eaf5.tar.gz
refinery-f438a9f38d41521d9e2c05f314e38946e969eaf5.tar.zst
refinery-f438a9f38d41521d9e2c05f314e38946e969eaf5.zip
chore(deps): upgrade to frontend-jdk17 8.0.0
Diffstat (limited to 'buildSrc/src')
-rw-r--r--buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-workspace.gradle.kts10
-rw-r--r--buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-worktree.gradle.kts20
-rw-r--r--buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts11
3 files changed, 8 insertions, 33 deletions
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-workspace.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-workspace.gradle.kts
index f1f6d952..e2bd9aec 100644
--- a/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-workspace.gradle.kts
+++ b/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-workspace.gradle.kts
@@ -1,5 +1,5 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> 2 * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/>
3 * 3 *
4 * SPDX-License-Identifier: EPL-2.0 4 * SPDX-License-Identifier: EPL-2.0
5 */ 5 */
@@ -16,13 +16,13 @@ tasks {
16 enabled = false 16 enabled = false
17 } 17 }
18 18
19 installYarnGlobally { 19 resolvePackageManager {
20 dependsOn(rootProject.tasks.named("installYarnGlobally")) 20 dependsOn(rootProject.tasks.named("resolvePackageManager"))
21 enabled = false 21 enabled = false
22 } 22 }
23 23
24 installYarn { 24 installPackageManager {
25 dependsOn(rootProject.tasks.named("installYarn")) 25 dependsOn(rootProject.tasks.named("installPackageManager"))
26 enabled = false 26 enabled = false
27 } 27 }
28 28
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-worktree.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-worktree.gradle.kts
index 609e6f24..30cfb26f 100644
--- a/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-worktree.gradle.kts
+++ b/buildSrc/src/main/kotlin/tools/refinery/gradle/frontend-worktree.gradle.kts
@@ -1,5 +1,5 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> 2 * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/>
3 * 3 *
4 * SPDX-License-Identifier: EPL-2.0 4 * SPDX-License-Identifier: EPL-2.0
5 */ 5 */
@@ -14,11 +14,7 @@ plugins {
14 id("tools.refinery.gradle.internal.frontend-conventions") 14 id("tools.refinery.gradle.internal.frontend-conventions")
15} 15}
16 16
17val yarn1Version = providers.gradleProperty("frontend.yarn1Version")
18
19frontend { 17frontend {
20 yarnGlobalInstallScript.set(yarn1Version.map { version -> "install -g yarn@$version" })
21 yarnInstallScript.set(frontend.yarnVersion.map { version -> "set version $version --only-if-needed" })
22 installScript.set(provider { 18 installScript.set(provider {
23 if (project.hasProperty("ci")) "install --immutable --inline-builds" else "install" 19 if (project.hasProperty("ci")) "install --immutable --inline-builds" else "install"
24 }) 20 })
@@ -61,20 +57,6 @@ tasks {
61 } 57 }
62 } 58 }
63 59
64 installYarnGlobally {
65 onlyIf {
66 getFrontendProperty("installedYarn1Version") != yarn1Version.get()
67 }
68 doLast {
69 putFrontedProperty("installedYarn1Version", yarn1Version.get())
70 }
71 outputs.dir(frontend.nodeInstallDirectory.map { dir -> "$dir/lib/node_modules/yarn" })
72 }
73
74 installYarn {
75 outputs.file(frontend.yarnVersion.map { version -> ".yarn/releases/yarn-$version.cjs" })
76 }
77
78 installFrontend { 60 installFrontend {
79 inputs.files("package.json", "yarn.lock") 61 inputs.files("package.json", "yarn.lock")
80 outputs.files(".pnp.cjs", ".pnp.loader.mjs") 62 outputs.files(".pnp.cjs", ".pnp.loader.mjs")
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts
index bd5d0197..65481bd1 100644
--- a/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts
+++ b/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts
@@ -1,22 +1,15 @@
1/* 1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> 2 * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/>
3 * 3 *
4 * SPDX-License-Identifier: EPL-2.0 4 * SPDX-License-Identifier: EPL-2.0
5 */ 5 */
6package tools.refinery.gradle.internal 6package tools.refinery.gradle.internal
7 7
8plugins { 8plugins {
9 id("org.siouan.frontend-jdk11") 9 id("org.siouan.frontend-jdk17")
10} 10}
11 11
12frontend { 12frontend {
13 nodeVersion.set(providers.gradleProperty("frontend.nodeVersion")) 13 nodeVersion.set(providers.gradleProperty("frontend.nodeVersion"))
14 nodeInstallDirectory.set(file("$rootDir/.node")) 14 nodeInstallDirectory.set(file("$rootDir/.node"))
15 yarnEnabled.set(true)
16 yarnVersion.set(providers.gradleProperty("frontend.yarnVersion"))
17}
18
19tasks.enableYarnBerry {
20 // There is no need to enable berry manually, because berry files are already committed to the repo.
21 enabled = false
22} 15}