Skip to content

Commit ca93ff5

Browse files
authored
Fix wpilib local repository not working (#676)
1 parent a17c2dd commit ca93ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/wpi/first/gradlerio/wpi/WPIPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void addMavenRepositories(Project project, WPIExtension wpi) {
111111
if (wpi.getMaven().isUseLocal()) {
112112
project.getRepositories().maven(repo -> {
113113
repo.setName("WPILocal");
114-
repo.setUrl(project.getExtensions().getByType(WPIExtension.class).getFrcHome() + "/maven");
114+
repo.setUrl(project.getExtensions().getByType(WPIExtension.class).getFrcHome().map(x -> x.dir("maven")));
115115
});
116116
}
117117

0 commit comments

Comments
 (0)