mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
This will allow dependencies such as wpilibc to update to use wpiutil without breaking "normal" ntcore static library use in the meantime. This commit also restructures the gradle files by creating a new (placeholder) wpiutil project, and moving the ntcore project into a separate gradle file. Added toolchains/native.gradle (refactored from ntcore). Also fixes ntcore skipJava on Windows by providing an alternate .def file for this case.
72 lines
2.2 KiB
Groovy
72 lines
2.2 KiB
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
// We change what repo we publish to depending on whether this is a development, beta, stable, or full
|
|
// release. This is set up in the main gradle file.
|
|
publishing {
|
|
publications {
|
|
def nat = project('native:ntcore')
|
|
if (!project.hasProperty('skipJava')) {
|
|
java(MavenPublication) {
|
|
artifact nat.jar
|
|
artifact nat.networktablesJavaSource
|
|
artifact nat.networktablesJavadoc
|
|
if (project.buildArm) {
|
|
artifact project('arm:ntcore').jar
|
|
}
|
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
artifact nat.jar, {
|
|
classifier = 'desktop'
|
|
}
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.java'
|
|
artifactId 'NetworkTables'
|
|
version '3.0.0-SNAPSHOT'
|
|
}
|
|
}
|
|
cpp(MavenPublication) {
|
|
artifact nat.ntcoreZip
|
|
artifact ntcoreSourceZip
|
|
if (project.buildArm) {
|
|
artifact project(':arm:ntcore').ntcoreZip
|
|
}
|
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
artifact nat.ntcoreZip, {
|
|
classifier = 'desktop'
|
|
}
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.cpp'
|
|
artifactId 'NetworkTables'
|
|
version '3.0.0-SNAPSHOT'
|
|
}
|
|
wpiutil(MavenPublication) {
|
|
artifact project(':native:wpiutil').wpiutilZip
|
|
artifact wpiutilSourceZip
|
|
if (project.buildArm) {
|
|
artifact project(':arm:wpiutil').wpiutilZip
|
|
}
|
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
artifact project(':native:wpiutil').wpiutilZip, {
|
|
classifier = 'desktop'
|
|
}
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib'
|
|
artifactId 'wpiutil'
|
|
version '1.0.0-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "${System.getProperty('user.home')}/releases/maven/${project.repo}"
|
|
}
|
|
}
|
|
}
|