From 136fdda4201a9921d78a857f103cb7ab94d7b385 Mon Sep 17 00:00:00 2001 From: T Grinch <10247070+thenetworkgrinch@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:22:58 -0600 Subject: [PATCH] Add javadoc link to WPILib docs and oracle java docs. (#40) * Added javadoc link to WPILib docs and oracle java docs. * Update javadocs link to java17 * Update build.gradle * Fix variable to integer. --------- Co-authored-by: thenetworkgrinch --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index c0a6adb..7b83b9f 100644 --- a/build.gradle +++ b/build.gradle @@ -24,6 +24,7 @@ java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } +var javaVersion = "17" // Apply C++ configuration apply from: 'config.gradle' @@ -45,6 +46,13 @@ dependencies { implementation 'edu.wpi.first.thirdparty.frc2024.opencv:opencv-java:4.8.0-4' } +// Setup Javadocs to link back to WPILib docs +javadoc { + options { + links "https://docs.oracle.com/en/java/javase/$javaVersion/docs/api/", 'https://github.wpilib.org/allwpilib/docs/release/java/' + } +} + // Set up exports properly nativeUtils { exportsConfigs {