aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts
blob: c4658948c52b504b9eeaf8e838cfff6c78f4dc1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import org.siouan.frontendgradleplugin.infrastructure.gradle.EnableYarnBerryTask
import org.siouan.frontendgradleplugin.infrastructure.gradle.FrontendExtension

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

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

tasks.named<EnableYarnBerryTask>("enableYarnBerry") {
	// There is no need to enable berry manually, because berry files are already committed to the repo.
	enabled = false
}