mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[cmd, build] Fix wpiannotation dependencies on commandsv2 (#8279)
This commit is contained in:
@@ -104,9 +104,9 @@ wpilib_cc_static_library(
|
||||
wpilib_java_library(
|
||||
name = "wpilibNewCommands-java",
|
||||
srcs = glob(["src/main/java/**/*.java"]) + [":generated_java"],
|
||||
exported_plugins = ["//javacPlugin:plugin"],
|
||||
maven_artifact_name = "wpilibNewCommands-java",
|
||||
maven_group_id = "edu.wpi.first.wpilibNewCommands",
|
||||
exported_plugins = ["//javacPlugin:plugin"],
|
||||
plugins = ["//javacPlugin:plugin"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
@@ -148,6 +148,7 @@ wpilib_java_junit5_test(
|
||||
":wpilibNewCommands-java",
|
||||
"//hal:hal-java",
|
||||
"//ntcore:ntcore-java",
|
||||
"//wpiannotations",
|
||||
"//wpilibj:wpilibj-java",
|
||||
"//wpimath:wpimath-java",
|
||||
"//wpiunits:wpiunits-java",
|
||||
|
||||
@@ -25,6 +25,7 @@ dependencies {
|
||||
api project(':datalog')
|
||||
testImplementation 'org.mockito:mockito-core:4.1.0'
|
||||
annotationProcessor project(':javacPlugin')
|
||||
testAnnotationProcessor project(':javacPlugin')
|
||||
}
|
||||
|
||||
sourceSets.main.java.srcDir "${projectDir}/src/generated/main/java"
|
||||
|
||||
@@ -30,6 +30,7 @@ public abstract class SingleCompositionTestBase<T extends Command> extends Comma
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("NoDiscard")
|
||||
void commandInOtherCompositionTest() {
|
||||
var command = Commands.none();
|
||||
new WrapperCommand(command) {};
|
||||
|
||||
Reference in New Issue
Block a user