2018-07-29 15:14:37 -07:00
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
2021-09-19 17:59:14 -07:00
|
|
|
id "org.ysb33r.doxygen" version "0.7.0"
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
|
2022-11-30 19:50:52 -08:00
|
|
|
evaluationDependsOn(':apriltag')
|
|
|
|
|
evaluationDependsOn(':cameraserver')
|
2018-07-29 15:14:37 -07:00
|
|
|
evaluationDependsOn(':cscore')
|
|
|
|
|
evaluationDependsOn(':hal')
|
2022-11-30 19:50:52 -08:00
|
|
|
evaluationDependsOn(':ntcore')
|
|
|
|
|
evaluationDependsOn(':wpilibNewCommands')
|
2018-07-29 15:14:37 -07:00
|
|
|
evaluationDependsOn(':wpilibc')
|
|
|
|
|
evaluationDependsOn(':wpilibj')
|
2022-11-30 19:50:52 -08:00
|
|
|
evaluationDependsOn(':wpimath')
|
|
|
|
|
evaluationDependsOn(':wpinet')
|
[wpiunits] Add subproject for a Java typesafe unit system (#5371)
# Background
Unit safety has always been a problem in WPILib. Any value corresponding to a physical measurement, such as current draw or distance traveled, is represented by a bare number with no unit tied to it; it's up to the programmer to know what units they're working and take care to remember that while working on their robot program. This leads to bugs when programmers accidentally mix units without knowing, or measure something (such as a wheel diameter) in one unit and program using another. `wpiunits` is intended to eliminate that class of bugs.
Another source of friction is the controllers and models in `wpimath` that expect all inputs to be in terms of SI units (meter, kilogram, and so on), while most FRC teams are US-based and most commonly use imperial units. wpimath does a good job of noting unit types in method names and argument names; however, it still relies on users properly converting values (and knowing they even have to do so).
# API
There are really only two core classes in this library: `Unit` and `Measure`. A `Unit` represents some dimension like distance or time. `Unit` is subclassed to define specific dimensions (eg `Distance` and `Time`) and those subclasses are instantiated to defined particular units in those dimensions, such as `Meters` and `Feet` being instances of the `Distance` class.
A `Measure` is a value tied to a particular dimension like distance and knows what unit that value is tied to. `Measure` has two implementations - one immutable and one mutable. The `Measure` interface only defines *read-only* operations; any API working with measurements should use the interface. The default implementation is `ImmutableMeasure`, which only implements those read-only operations and is useful for tracking constants. `MutableMeasure` also adds some methods that will allow for mutation of its internal state; this class is intended for use for things like sensors and controllers that track internal state and don't want to allocate new `Measure` objects every time something like `myEncoder.getDistance()` is called. However, the APIs for those methods should still only expose the read-only `Measure` interface so users can't (without casting or reflection) change the internal values.
A `Units` class provides convenient definitions for most of the commonly used unit types, such as `Meters`, `Feet`, and `Milliseconds`. I recommend static importing these units eg `import static edu.wpi.first.units.Units.Meters`) so they can be used like `Meters.of(1.234)` instead of `Units.Meters.of(1.234)`
# Examples
These examples are admittedly contrived. Users shouldn't be interacting much with measure objects themselves, since wpimath and wpilibj classes will be updated to support working with them; users will often just have to take a `Measure` output from one place (such as an encoder) and feed it as input to something else (such as a PID controller or kinematics model)
```java
// Using raw units
Encoder encoder = ...
int kPulsesPerRev = 2048;
double kWheelDiameterMeters = Units.inchesToMeters(6);
double kGearRatio = 10.86;
// always have to remember this encoder will output in meters!
encoder.setDistancePerPulse(kWheelDiameterMeters * Math.PI / (kGearRatio * kPulsesPerRev));
Command driveDistance(double distance) {
// have to know the distance argument needs to be in meters!
return run(this::driveStraight).until(() -> encoder.getDistance() >= distance);
}
// Oops! This will go 16 feet, not 5!
Command driveFiveFeet = driveDistance(5);
Command driveOneMeter = driveDistance(1);
```
```java
// Using wpiunits
Encoder encoder = ...
int kPulsesPerRev = 2048;
Measure<Distance> kWheelDiameter = Inches.of(6);
double kGearRatio = 10.86;
encoder.setDistancePerPulse(kWheelDiameter.times(Math.PI).divide(kGearRatio * kPulsesPerRev));
Command driveDistance(Measure<Distance> distance) {
// Measure#gte automatically handles unit conversions
return run(this::driveStraight).until(() -> encoder.getDistance().gte(distance));
}
// Users HAVE to be explicit about their units
Command driveFiveFeet = driveDistance(Feet.of(5));
Command driveOneMeter = driveDistance(Meters.of(1));
```
```java
SmartDashboard.putNumber("Temperature (C)", pdp.getTemperature().in(Celsius));
SmartDashboard.putNumber("Temperature (F)", pdp.getTemperature().in(Fahrenheit));
```
```java
var InchSecond = Inch.mult(Second); // new combined unit types can be user-defined
var InchPerSecond = Inch.per(Second);
PIDController<Distance, ElectricPotential> heightController = new PIDController<>(
/* kP */ Volts.of(0.2).per(Inch),
/* kI */ Volts.of(0.002).per(InchSecond),
/* kD */ Volts.of(0.008).per(InchPerSecond)
);
var elevatorTop = Feet.of(4).plus(Inches.of(6.125));
elevatorMotor.setVoltage(heightController.calculate(encoder.getDistance(), elevatorTop));
```
2023-07-23 17:18:17 -04:00
|
|
|
evaluationDependsOn(':wpiunits')
|
2022-11-30 19:50:52 -08:00
|
|
|
evaluationDependsOn(':wpiutil')
|
2018-07-29 15:14:37 -07:00
|
|
|
|
|
|
|
|
def baseArtifactIdCpp = 'documentation'
|
|
|
|
|
def artifactGroupIdCpp = 'edu.wpi.first.wpilibc'
|
|
|
|
|
def zipBaseNameCpp = '_GROUP_edu_wpi_first_wpilibc_ID_documentation_CLS'
|
|
|
|
|
|
|
|
|
|
def baseArtifactIdJava = 'documentation'
|
|
|
|
|
def artifactGroupIdJava = 'edu.wpi.first.wpilibj'
|
|
|
|
|
def zipBaseNameJava = '_GROUP_edu_wpi_first_wpilibj_ID_documentation_CLS'
|
|
|
|
|
|
|
|
|
|
def outputsFolder = file("$project.buildDir/outputs")
|
|
|
|
|
|
|
|
|
|
def cppProjectZips = []
|
2021-02-12 22:17:39 -08:00
|
|
|
def cppIncludeRoots = []
|
2018-07-29 15:14:37 -07:00
|
|
|
|
2022-11-30 19:50:52 -08:00
|
|
|
cppProjectZips.add(project(':apriltag').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':cameraserver').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':cscore').cppHeadersZip)
|
2018-07-29 15:14:37 -07:00
|
|
|
cppProjectZips.add(project(':hal').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':ntcore').cppHeadersZip)
|
2019-11-11 21:38:04 -08:00
|
|
|
cppProjectZips.add(project(':wpilibNewCommands').cppHeadersZip)
|
2022-11-30 19:50:52 -08:00
|
|
|
cppProjectZips.add(project(':wpilibc').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':wpimath').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':wpinet').cppHeadersZip)
|
|
|
|
|
cppProjectZips.add(project(':wpiutil').cppHeadersZip)
|
2018-07-29 15:14:37 -07:00
|
|
|
|
|
|
|
|
doxygen {
|
2022-12-27 23:43:21 -05:00
|
|
|
// Doxygen binaries are only provided for x86_64 platforms
|
|
|
|
|
// Other platforms will need to provide doxygen via their system
|
|
|
|
|
// See below maven and https://doxygen.nl/download.html for provided binaries
|
|
|
|
|
|
|
|
|
|
String arch = System.getProperty("os.arch");
|
|
|
|
|
if (arch.equals("x86_64") || arch.equals("amd64")) {
|
|
|
|
|
executables {
|
|
|
|
|
doxygen version : '1.9.4',
|
|
|
|
|
baseURI : 'https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen'
|
|
|
|
|
}
|
2020-07-23 21:10:32 -04:00
|
|
|
}
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
doxygen {
|
|
|
|
|
generate_html true
|
2021-09-03 07:59:16 +03:00
|
|
|
html_extra_stylesheet 'theme.css'
|
2018-07-29 15:14:37 -07:00
|
|
|
|
|
|
|
|
cppProjectZips.each {
|
|
|
|
|
dependsOn it
|
|
|
|
|
source it.source
|
2021-02-12 22:17:39 -08:00
|
|
|
it.ext.includeDirs.each {
|
|
|
|
|
cppIncludeRoots.add(it.absolutePath)
|
|
|
|
|
}
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
2023-02-19 23:12:05 -08:00
|
|
|
cppIncludeRoots << '../ntcore/build/generated/main/native/include/'
|
2018-07-29 15:14:37 -07:00
|
|
|
|
2021-10-14 18:09:38 -07:00
|
|
|
if (project.hasProperty('docWarningsAsErrors')) {
|
|
|
|
|
// Eigen
|
|
|
|
|
exclude 'Eigen/**'
|
|
|
|
|
exclude 'unsupported/**'
|
|
|
|
|
|
|
|
|
|
// LLVM
|
|
|
|
|
exclude 'wpi/AlignOf.h'
|
2023-07-12 22:50:13 -07:00
|
|
|
exclude 'wpi/Casting.h'
|
2021-10-14 18:09:38 -07:00
|
|
|
exclude 'wpi/Chrono.h'
|
|
|
|
|
exclude 'wpi/Compiler.h'
|
|
|
|
|
exclude 'wpi/ConvertUTF.h'
|
|
|
|
|
exclude 'wpi/DenseMap.h'
|
|
|
|
|
exclude 'wpi/DenseMapInfo.h'
|
|
|
|
|
exclude 'wpi/Endian.h'
|
|
|
|
|
exclude 'wpi/EpochTracker.h'
|
|
|
|
|
exclude 'wpi/Errc.h'
|
|
|
|
|
exclude 'wpi/Errno.h'
|
|
|
|
|
exclude 'wpi/ErrorHandling.h'
|
2023-07-12 22:50:13 -07:00
|
|
|
exclude 'wpi/bit.h'
|
2021-10-14 18:09:38 -07:00
|
|
|
exclude 'wpi/fs.h'
|
|
|
|
|
exclude 'wpi/FunctionExtras.h'
|
|
|
|
|
exclude 'wpi/function_ref.h'
|
|
|
|
|
exclude 'wpi/Hashing.h'
|
|
|
|
|
exclude 'wpi/iterator.h'
|
|
|
|
|
exclude 'wpi/iterator_range.h'
|
|
|
|
|
exclude 'wpi/ManagedStatic.h'
|
|
|
|
|
exclude 'wpi/MapVector.h'
|
|
|
|
|
exclude 'wpi/MathExtras.h'
|
|
|
|
|
exclude 'wpi/MemAlloc.h'
|
|
|
|
|
exclude 'wpi/PointerIntPair.h'
|
|
|
|
|
exclude 'wpi/PointerLikeTypeTraits.h'
|
|
|
|
|
exclude 'wpi/PointerUnion.h'
|
|
|
|
|
exclude 'wpi/raw_os_ostream.h'
|
|
|
|
|
exclude 'wpi/raw_ostream.h'
|
|
|
|
|
exclude 'wpi/SmallPtrSet.h'
|
|
|
|
|
exclude 'wpi/SmallSet.h'
|
|
|
|
|
exclude 'wpi/SmallString.h'
|
|
|
|
|
exclude 'wpi/SmallVector.h'
|
|
|
|
|
exclude 'wpi/StringExtras.h'
|
|
|
|
|
exclude 'wpi/StringMap.h'
|
|
|
|
|
exclude 'wpi/SwapByteOrder.h'
|
|
|
|
|
exclude 'wpi/type_traits.h'
|
|
|
|
|
exclude 'wpi/VersionTuple.h'
|
|
|
|
|
exclude 'wpi/WindowsError.h'
|
|
|
|
|
|
|
|
|
|
// fmtlib
|
|
|
|
|
exclude 'fmt/**'
|
|
|
|
|
|
|
|
|
|
// libuv
|
|
|
|
|
exclude 'uv.h'
|
|
|
|
|
exclude 'uv/**'
|
2022-10-25 08:47:28 -07:00
|
|
|
exclude 'wpinet/uv/**'
|
2021-10-14 18:09:38 -07:00
|
|
|
|
|
|
|
|
// json
|
2023-10-15 05:53:56 +01:00
|
|
|
exclude 'wpi/adl_serializer.h'
|
|
|
|
|
exclude 'wpi/byte_container_with_subtype.h'
|
|
|
|
|
exclude 'wpi/detail/**'
|
2021-10-14 18:09:38 -07:00
|
|
|
exclude 'wpi/json.h'
|
2023-10-15 05:53:56 +01:00
|
|
|
exclude 'wpi/json_fwd.h'
|
|
|
|
|
exclude 'wpi/ordered_map.h'
|
|
|
|
|
exclude 'wpi/thirdparty/**'
|
2021-10-14 18:09:38 -07:00
|
|
|
|
2022-09-02 20:32:21 -07:00
|
|
|
// memory
|
|
|
|
|
exclude 'wpi/memory/**'
|
|
|
|
|
|
2021-10-20 21:08:31 -07:00
|
|
|
// mpack
|
|
|
|
|
exclude 'wpi/mpack.h'
|
|
|
|
|
|
2021-10-14 18:09:38 -07:00
|
|
|
// units
|
|
|
|
|
exclude 'units/**'
|
|
|
|
|
}
|
2019-09-28 08:28:31 -07:00
|
|
|
|
2022-11-14 20:19:44 -08:00
|
|
|
//TODO: building memory docs causes search to break
|
|
|
|
|
exclude 'wpi/memory/**'
|
|
|
|
|
|
2022-10-23 18:12:24 -07:00
|
|
|
aliases 'effects=\\par <i>Effects:</i>^^',
|
|
|
|
|
'notes=\\par <i>Notes:</i>^^',
|
|
|
|
|
'requires=\\par <i>Requires:</i>^^',
|
|
|
|
|
'requiredbe=\\par <i>Required Behavior:</i>^^',
|
|
|
|
|
'concept{2}=<a href=\"md_doc_concepts.html#\1\">\2</a>',
|
|
|
|
|
'defaultbe=\\par <i>Default Behavior:</i>^^'
|
2021-10-18 21:29:23 -07:00
|
|
|
case_sense_names false
|
2021-11-16 11:22:34 -08:00
|
|
|
extension_mapping 'inc=C++', 'no_extension=C++'
|
2021-10-29 15:07:05 -07:00
|
|
|
extract_all true
|
2021-10-14 18:09:38 -07:00
|
|
|
extract_static true
|
2021-11-16 11:22:34 -08:00
|
|
|
file_patterns '*'
|
2021-10-14 18:09:38 -07:00
|
|
|
full_path_names true
|
|
|
|
|
generate_html true
|
|
|
|
|
generate_latex false
|
|
|
|
|
generate_treeview true
|
|
|
|
|
html_extra_stylesheet 'theme.css'
|
|
|
|
|
html_timestamp true
|
|
|
|
|
javadoc_autobrief true
|
2018-07-29 15:14:37 -07:00
|
|
|
project_name 'WPILibC++'
|
2021-09-03 07:59:16 +03:00
|
|
|
project_logo '../wpiutil/src/main/native/resources/wpilib-128.png'
|
2019-08-22 21:48:43 -07:00
|
|
|
project_number wpilibVersioning.version.get()
|
2018-07-29 15:14:37 -07:00
|
|
|
quiet true
|
2021-10-14 18:09:38 -07:00
|
|
|
recursive true
|
2021-10-18 21:39:22 -07:00
|
|
|
strip_code_comments false
|
2021-02-12 22:17:39 -08:00
|
|
|
strip_from_inc_path cppIncludeRoots as String[]
|
|
|
|
|
strip_from_path cppIncludeRoots as String[]
|
2021-10-14 18:09:38 -07:00
|
|
|
use_mathjax true
|
|
|
|
|
warnings false
|
|
|
|
|
warn_if_incomplete_doc true
|
|
|
|
|
warn_if_undocumented false
|
|
|
|
|
warn_no_paramdoc true
|
|
|
|
|
|
2022-12-05 23:06:43 -05:00
|
|
|
//enable doxygen preprocessor expansion of WPI_DEPRECATED to fix MotorController docs
|
2021-10-18 21:29:23 -07:00
|
|
|
enable_preprocessing true
|
|
|
|
|
macro_expansion true
|
|
|
|
|
expand_only_predef true
|
2023-06-22 23:58:38 -04:00
|
|
|
predefined "WPI_DEPRECATED(x)=[[deprecated(x)]]\"\\\n" +
|
2023-07-06 00:20:21 -04:00
|
|
|
"\"__cplusplus\"\\\n" +
|
|
|
|
|
"\"HAL_ENUM(name)=enum name : int32_t"
|
2021-10-18 21:29:23 -07:00
|
|
|
|
2021-10-14 18:09:38 -07:00
|
|
|
if (project.hasProperty('docWarningsAsErrors')) {
|
|
|
|
|
warn_as_error 'FAIL_ON_WARNINGS'
|
|
|
|
|
}
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.register("zipCppDocs", Zip) {
|
2019-11-12 17:14:04 -08:00
|
|
|
archiveBaseName = zipBaseNameCpp
|
|
|
|
|
destinationDirectory = outputsFolder
|
2018-07-29 15:14:37 -07:00
|
|
|
dependsOn doxygen
|
|
|
|
|
from ("$buildDir/docs/doxygen/html")
|
|
|
|
|
into '/'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Java
|
|
|
|
|
configurations {
|
|
|
|
|
javaSource {
|
|
|
|
|
transitive false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
sharedCvConfigs = [:]
|
|
|
|
|
staticCvConfigs = [:]
|
|
|
|
|
useJava = true
|
|
|
|
|
useCpp = false
|
|
|
|
|
skipDev = true
|
|
|
|
|
useDocumentation = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/opencv.gradle"
|
|
|
|
|
|
|
|
|
|
task generateJavaDocs(type: Javadoc) {
|
2020-08-06 23:57:39 -07:00
|
|
|
classpath += project(":wpimath").sourceSets.main.compileClasspath
|
2023-09-11 00:59:32 -04:00
|
|
|
options.links("https://docs.oracle.com/en/java/javase/17/docs/api/")
|
2021-07-29 22:42:43 -07:00
|
|
|
options.addStringOption("tag", "pre:a:Pre-Condition")
|
|
|
|
|
options.addBooleanOption("Xdoclint:html,missing,reference,syntax", true)
|
2018-10-29 03:08:21 -04:00
|
|
|
options.addBooleanOption('html5', true)
|
2021-09-07 22:46:09 -07:00
|
|
|
options.linkSource(true)
|
2018-09-19 21:57:58 -07:00
|
|
|
dependsOn project(':hal').generateUsageReporting
|
2022-10-08 10:01:31 -07:00
|
|
|
dependsOn project(':ntcore').ntcoreGenerateJavaTypes
|
2022-11-30 19:50:52 -08:00
|
|
|
dependsOn project(':wpilibj').generateJavaVersion
|
|
|
|
|
dependsOn project(':wpimath').generateNat
|
|
|
|
|
source project(':apriltag').sourceSets.main.java
|
|
|
|
|
source project(':cameraserver').sourceSets.main.java
|
2018-07-29 15:14:37 -07:00
|
|
|
source project(':cscore').sourceSets.main.java
|
2022-11-30 19:50:52 -08:00
|
|
|
source project(':hal').sourceSets.main.java
|
2018-07-29 15:14:37 -07:00
|
|
|
source project(':ntcore').sourceSets.main.java
|
2019-11-11 21:38:04 -08:00
|
|
|
source project(':wpilibNewCommands').sourceSets.main.java
|
2022-11-30 19:50:52 -08:00
|
|
|
source project(':wpilibj').sourceSets.main.java
|
|
|
|
|
source project(':wpimath').sourceSets.main.java
|
|
|
|
|
source project(':wpinet').sourceSets.main.java
|
|
|
|
|
source project(':wpiutil').sourceSets.main.java
|
2018-07-29 15:14:37 -07:00
|
|
|
source configurations.javaSource.collect { zipTree(it) }
|
|
|
|
|
include '**/*.java'
|
|
|
|
|
failOnError = true
|
2019-02-02 00:20:57 -08:00
|
|
|
|
2019-08-22 21:48:43 -07:00
|
|
|
title = "WPILib API ${wpilibVersioning.version.get()}"
|
2019-02-02 00:20:57 -08:00
|
|
|
ext.entryPoint = "$destinationDir/index.html"
|
|
|
|
|
|
2021-10-14 18:09:38 -07:00
|
|
|
if (JavaVersion.current().isJava8Compatible() && project.hasProperty('docWarningsAsErrors')) {
|
2021-08-28 20:48:47 -07:00
|
|
|
// Treat javadoc warnings as errors.
|
|
|
|
|
//
|
2023-02-26 15:06:37 -08:00
|
|
|
// The second argument '-quiet' is a hack. The one parameter
|
2021-08-28 20:48:47 -07:00
|
|
|
// addStringOption() doesn't work, so we add '-quiet', which is added
|
|
|
|
|
// anyway by gradle. See https://github.com/gradle/gradle/issues/2354.
|
|
|
|
|
//
|
|
|
|
|
// See JDK-8200363 (https://bugs.openjdk.java.net/browse/JDK-8200363)
|
|
|
|
|
// for information about the nonstandard -Xwerror option. JDK 15+ has
|
|
|
|
|
// -Werror.
|
|
|
|
|
options.addStringOption('Xwerror', '-quiet')
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-02 00:20:57 -08:00
|
|
|
if (JavaVersion.current().isJava11Compatible()) {
|
2020-10-15 21:52:49 -04:00
|
|
|
if (!JavaVersion.current().isJava12Compatible()) {
|
|
|
|
|
options.addBooleanOption('-no-module-directories', true)
|
|
|
|
|
}
|
2019-02-02 00:20:57 -08:00
|
|
|
doLast {
|
|
|
|
|
// This is a work-around for https://bugs.openjdk.java.net/browse/JDK-8211194. Can be removed once that issue is fixed on JDK's side
|
|
|
|
|
// Since JDK 11, package-list is missing from javadoc output files and superseded by element-list file, but a lot of external tools still need it
|
|
|
|
|
// Here we generate this file manually
|
|
|
|
|
new File(destinationDir, 'package-list').text = new File(destinationDir, 'element-list').text
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.register("zipJavaDocs", Zip) {
|
2019-11-12 17:14:04 -08:00
|
|
|
archiveBaseName = zipBaseNameJava
|
|
|
|
|
destinationDirectory = outputsFolder
|
2018-07-29 15:14:37 -07:00
|
|
|
dependsOn generateJavaDocs
|
|
|
|
|
from ("$buildDir/docs/javadoc")
|
|
|
|
|
into '/'
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-15 21:52:49 -04:00
|
|
|
tasks.register("zipDocs") {
|
|
|
|
|
dependsOn zipCppDocs
|
|
|
|
|
dependsOn zipJavaDocs
|
|
|
|
|
}
|
2018-07-29 15:14:37 -07:00
|
|
|
|
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
java(MavenPublication) {
|
|
|
|
|
artifact zipJavaDocs
|
|
|
|
|
|
|
|
|
|
artifactId = "${baseArtifactIdJava}"
|
|
|
|
|
groupId artifactGroupIdJava
|
2019-08-22 21:48:43 -07:00
|
|
|
version wpilibVersioning.version.get()
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
cpp(MavenPublication) {
|
|
|
|
|
artifact zipCppDocs
|
|
|
|
|
|
|
|
|
|
artifactId = "${baseArtifactIdCpp}"
|
|
|
|
|
groupId artifactGroupIdCpp
|
2019-08-22 21:48:43 -07:00
|
|
|
version wpilibVersioning.version.get()
|
2018-07-29 15:14:37 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|