diff options
Diffstat (limited to 'buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts')
-rw-r--r-- | buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts b/buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts new file mode 100644 index 00000000..c4658948 --- /dev/null +++ b/buildSrc/src/main/kotlin/refinery-frontend-conventions.gradle.kts | |||
@@ -0,0 +1,18 @@ | |||
1 | import org.siouan.frontendgradleplugin.infrastructure.gradle.EnableYarnBerryTask | ||
2 | import org.siouan.frontendgradleplugin.infrastructure.gradle.FrontendExtension | ||
3 | |||
4 | plugins { | ||
5 | id("org.siouan.frontend-jdk11") | ||
6 | } | ||
7 | |||
8 | configure<FrontendExtension> { | ||
9 | nodeVersion.set(providers.gradleProperty("frontend.nodeVersion")) | ||
10 | nodeInstallDirectory.set(file("$rootDir/.node")) | ||
11 | yarnEnabled.set(true) | ||
12 | yarnVersion.set(providers.gradleProperty("frontend.yarnVersion")) | ||
13 | } | ||
14 | |||
15 | tasks.named<EnableYarnBerryTask>("enableYarnBerry") { | ||
16 | // There is no need to enable berry manually, because berry files are already committed to the repo. | ||
17 | enabled = false | ||
18 | } | ||