-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
40 lines (33 loc) · 1.06 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
pluginManagement {
val frcYear: String by settings
val kspVersion: String by settings
val kotlinVersion: String by settings
val wpilibVersion: String by settings
plugins {
kotlin("jvm") version kotlinVersion
id("com.google.devtools.ksp") version kspVersion
id("edu.wpi.first.GradleRIO") version wpilibVersion
}
repositories {
mavenLocal()
gradlePluginPortal()
val frcHome = if (System.getProperty("os.name").contains("windows", ignoreCase = true)) {
file(System.getenv("PUBLIC") ?: """C:\Users\Public""")
} else {
file(System.getProperty("user.home"))
}
.resolve("wpilib")
.resolve(frcYear)
maven {
name = "frcHome"
url = uri(frcHome.resolve("maven"))
}
}
}
include(":annotation")
System.getProperties().apply {
setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true")
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.9.0")
}