-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (38 loc) · 1.29 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
plugins {
id "eu.davidea.grabver" version "2.0.2"
id "com.jfrog.artifactory" version "4.17.2" apply false
}
versioning {
major 0
minor 0
}
def wpilibVersion = "2022.2.1"
allprojects { project ->
group 'frckit'
apply plugin: 'idea'
}
def topLevelProjects = ["lib", "sim", "tools"]
subprojects { project ->
if (!topLevelProjects.contains(project.name)) { //Do not apply java to top level (organization only) projects
apply plugin: "java-library"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
version = versioning.name
repositories {
mavenCentral()
maven {
url "https://frcmaven.wpi.edu/artifactory/release"
}
}
dependencies {
implementation "edu.wpi.first.wpilibj:wpilibj-java:$wpilibVersion"
implementation "edu.wpi.first.wpimath:wpimath-java:$wpilibVersion"
implementation "edu.wpi.first.hal:hal-java:$wpilibVersion"
implementation "edu.wpi.first.ntcore:ntcore-java:$wpilibVersion" //TODO move this into only pvision
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
}
}