aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/frontend-conventions.gradle.kts
blob: bd5d0197c58349f90b5af5786c94f517b5e53df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package tools.refinery.gradle.internal

plugins {
	id("org.siouan.frontend-jdk11")
}

frontend {
	nodeVersion.set(providers.gradleProperty("frontend.nodeVersion"))
	nodeInstallDirectory.set(file("$rootDir/.node"))
	yarnEnabled.set(true)
	yarnVersion.set(providers.gradleProperty("frontend.yarnVersion"))
}

tasks.enableYarnBerry {
	// There is no need to enable berry manually, because berry files are already committed to the repo.
	enabled = false
}