-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (49 loc) · 1.62 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
// Note 'apply false' for each plugin. This ensures they aren't applied to the root project (here),
// but it makes the plugins available for subprojects.
plugins {
// GradleRIO is used for code intended to go on robots, which is why it's only applied to the 'robot' project.
id "jaci.openrio.gradle.GradleRIO" version "2018.03.06" apply false
// EmbeddedTools is the backing library for GradleRIO, and includes everything that's non-frc specific, which
// is why we use it for our coprocessor project.
id "jaci.gradle.EmbeddedTools" version "2018.02.04" apply false
}
// allprojects = root project + subprojects
// IDE plugins should be applied to the entire project.
allprojects {
apply plugin: "idea"
apply plugin: "eclipse"
repositories {
mavenCentral()
maven {
url 'http://first.wpi.edu/FRC/roborio/maven/release'
}
maven {
url 'https://jitpack.io'
}
}
}
// Apply java plugin only to subprojects
// Also apply restructure.
subprojects {
apply plugin: "java"
sourceSets.main.java {
srcDirs = ['src']; include '**/*.java'
}
sourceSets.main.resources {
srcDirs = ['src']; exclude '**/*.java'
}
configurations {
config {
description = 'File configs'
}
}
dependencies {
compile 'org.apache.logging.log4j:log4j-api:2.10.0'
compile 'org.apache.logging.log4j:log4j-core:2.10.0'
compile fileTree(dir: 'lib', include: '*.jar')
config fileTree(dir: 'config', include: '*.properties')
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4.1'
}