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 <thenetworkgrinch@users.noreply.github.com>
This commit is contained in:
T Grinch 2024-12-03 00:22:58 -06:00 committed by GitHub
parent 464d8b6acc
commit 136fdda420
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {