-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (57 loc) · 1.63 KB
/
Copy pathbuild.gradle
File metadata and controls
70 lines (57 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
import edu.wpi.first.gradlerio.deploy.roborio.RoboRIO
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "edu.wpi.first:GradleRIO:2022.4.1"
}
}
plugins {
id "java"
id 'maven-publish'
}
ext {
mGroupID = "com.lightningrobotics"
mArtifactID = "common"
mVersionName = System.getenv("VERSION")
}
def gradleRioPluginId = 'edu.wpi.first.GradleRIO'
final gradleRioInstalled = project.getPlugins().hasPlugin(gradleRioPluginId)
if(gradleRioInstalled) {
final Plugin plugin = project.getPlugins().getPlugin(gradleRioPluginId)
println 'Plugin already applied'
} else {
apply plugin: "edu.wpi.first.GradleRIO"
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
dependencies {
implementation wpi.java.deps.wpilib()
implementation wpi.java.vendor.java()
implementation 'org.ejml:ejml-all:0.40'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:3.2.4'
}
publishing {
publications {
gpr(MavenPublication) {
groupId mGroupID
artifactId mArtifactID
version mVersionName
from components.java
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/frc-862/lightning")
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
}