2022-04-23 10:48:53 +03:00
|
|
|
rootProject.name = "spc-site"
|
|
|
|
|
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
enableFeaturePreview("VERSION_CATALOGS")
|
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
|
|
|
|
val toolsVersion: String by extra
|
2022-07-03 16:39:38 +03:00
|
|
|
val snarkVersion: String by extra
|
2022-04-23 10:48:53 +03:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven("https://repo.kotlin.link")
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2022-09-03 11:54:56 +03:00
|
|
|
id("space.kscience.gradle.project") version toolsVersion
|
|
|
|
id("space.kscience.gradle.mpp") version toolsVersion
|
|
|
|
id("space.kscience.gradle.jvm") version toolsVersion
|
|
|
|
id("space.kscience.gradle.js") version toolsVersion
|
2022-07-03 16:39:38 +03:00
|
|
|
id("space.kscience.snark") version snarkVersion
|
2022-04-23 10:48:53 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyResolutionManagement {
|
|
|
|
|
|
|
|
val toolsVersion: String by extra
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven("https://repo.kotlin.link")
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
versionCatalogs {
|
|
|
|
create("npmlibs") {
|
2022-09-03 11:54:56 +03:00
|
|
|
from("space.kscience:version-catalog:$toolsVersion")
|
2022-04-23 10:48:53 +03:00
|
|
|
}
|
|
|
|
}
|
2022-06-30 20:51:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val snarkProjectDirectory = File("../snark")
|
|
|
|
if(snarkProjectDirectory.exists()) {
|
|
|
|
includeBuild("../snark")
|
2022-04-23 10:48:53 +03:00
|
|
|
}
|