-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
41 lines (33 loc) · 1.12 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import java.util.*
pluginManagement {
val kotlinVersion: String by settings
val kspVersion: String by settings
val frcYear: String by settings
plugins {
id("com.google.devtools.ksp") version kspVersion
kotlin("jvm") version kotlinVersion
}
repositories {
mavenLocal()
gradlePluginPortal()
val frcHome = if (System.getProperty("os.name").contains("windows")) {
val publicFolder = System.getenv("PUBLIC") ?: "C:\\Users\\Public"
val homeRoot = File(publicFolder, "wpilib")
File(homeRoot, frcYear)
} else {
val userFolder = System.getProperty("user.home")
val homeRoot = File(userFolder, "wpilib")
File(homeRoot, frcYear)
}
val frcHomeMaven = File(frcHome, "maven")
maven {
name = "frcHome"
url = frcHomeMaven.toURI()
}
}
}
val props: Properties = System.getProperties()
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");
rootProject.name = "robotbase"
include(":robot")
include(":annotation")