-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (54 loc) · 1.22 KB
/
build.gradle
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import org.gradle.internal.os.OperatingSystem;;
buildscript {
ext.getShuffleboardVersion = {
return getWpilibVersion()
}
ext.getWpilibVersion = {
return "2022.2.1"
}
ext.getJavaFxPlatform = {
if(OperatingSystem.current().isWindows()) {
return "win"
}
else if(OperatingSystem.current().isLinux()) {
return "linux"
}
return "mac"
}
}
plugins {
id "java"
id 'com.diffplug.spotless' version '5.5.0' apply false
id "eclipse"
}
allprojects {
repositories {
maven {
name = "WPI"
url = "https://frcmaven.wpi.edu/artifactory/release/"
}
}
}
allprojects {
apply {
plugin("maven-publish")
plugin("java")
}
repositories {
mavenCentral()
}
}
allprojects {
apply from: "${rootDir}/styleguide/styleguide.gradle"
}
ext {
// SpotBugsTask = com.github.spotbugs.SpotBugsTask
coordinateGuiBase = ""
if(project.findProperty("publishing_url")) {
publishing_url = uri(project.publishing_url)
println publishing_url
} else {
publishing_url = "${rootDir}/build/maven_repo"
}
publishing_version = "2022.1.0"
}