This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
103 lines (83 loc) · 2.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import edu.wpi.first.toolchain.*
buildscript {
ext.snobot_sim_repo = {
// return "http://raw.githubusercontent.com/snobotsim/maven_repo/2020dev/development/"
return "http://raw.githubusercontent.com/snobotsim/maven_repo/master/development/"
}
repositories {
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url snobot_sim_repo()
}
}
dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
}
}
plugins {
id 'base'
id 'edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin' version '2020.2'
id 'edu.wpi.first.NativeUtils' apply false
id 'edu.wpi.first.GradleJni' version '0.11.0'
id 'edu.wpi.first.GradleVsCode' version '0.12.0'
id 'idea'
id 'visual-studio'
id 'net.ltgt.errorprone' version '1.3.0' apply false
id "com.diffplug.spotless" version "5.8.1"
id "com.github.spotbugs" version "4.6.0"
}
apply plugin: 'nebula-aggregate-javadocs'
ext.use_simulator_cpp = false
ext.use_simulator_java = true
/////////////////////////////////////////
// Specify WPI Versions
apply from: "${rootDir}/common/shared_versions.gradle"
ext.getWpiRepo = {
return "https://frcmaven.wpi.edu/artifactory/release/"
// return "https://frcmaven.wpi.edu/artifactory/development/"
}
ext.getNavxRepo = {
return 'http://www.kauailabs.com/maven2/'
}
ext.getCtreRepo = {
return 'http://devsite.ctr-electronics.com/maven/release/'
}
ext.getRevRepo = {
return 'http://www.revrobotics.com/content/sw/max/sdk/maven/'
}
ext.getSnobotSimRepo = {
return snobot_sim_repo()
}
ext.getCurrentArch = {
return NativePlatforms.desktop
}
ext.getCurrentOsArch = {
return getCurrentArch()
}
repositories {
mavenCentral()
mavenLocal()
maven { url getWpiRepo() }
maven { url getNavxRepo() }
maven { url getCtreRepo() }
maven { url getSnobotSimRepo() }
}
/////////////////////////////////////////
// Publshing Information
ext.maven_publishing_path = "$rootDir/build/maven_repo/"
if(hasProperty('maven_repo'))
{
throw new GradleException("This isn't supported anymore")
}
ext.maven_version = "2020-1.0.0"
if(hasProperty('maven_version'))
{
ext.maven_version = maven_version
}
wrapper {
gradleVersion = '6.0'
}