mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
55 lines
1.6 KiB
Groovy
55 lines
1.6 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')
|
|
if (!project.hasProperty('skipJava')) {
|
|
java(MavenPublication) {
|
|
artifact nat.jar
|
|
artifact nat.networktablesJavaSource
|
|
artifact nat.networktablesJavadoc
|
|
if (project.buildArm) {
|
|
artifact project('arm').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').ntcoreZip
|
|
}
|
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
artifact nat.ntcoreZip, {
|
|
classifier = 'desktop'
|
|
}
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.cpp'
|
|
artifactId 'NetworkTables'
|
|
version '3.0.0-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "${System.getProperty('user.home')}/releases/maven/${project.repo}"
|
|
}
|
|
}
|
|
}
|