-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (50 loc) · 1.22 KB
/
Copy pathbuild.gradle
File metadata and controls
60 lines (50 loc) · 1.22 KB
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
plugins {
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
maven {
url "https://frcmaven.wpi.edu/artifactory/release/"
}
maven {
url "https://maven.revrobotics.com/"
}
}
def WPIversion = '2022.1.1'
def REVversion = '2022.0.0'
dependencies {
implementation "edu.wpi.first.wpilibj:wpilibj-java:$WPIversion"
implementation "edu.wpi.first.wpiutil:wpiutil-java:$WPIversion"
implementation "edu.wpi.first.hal:hal-java:$WPIversion"
implementation "com.revrobotics.frc:REVLib-java:$REVversion"
}
test {
useJUnitPlatform()
}
// name = 'SparkMaxSim-java'
group = System.getenv("GROUP") ?: 'net.thefletcher'
version = System.getenv("VERSION") ?: REVversion
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = group
artifactId = project.name
version = project.version
from components.java
}
}
}