mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
publishing {
|
|
publications {
|
|
if (!project.hasProperty('skipJava')) {
|
|
java(MavenPublication) {
|
|
artifact jar {
|
|
// If we're building the regular ntcore for arm, it has no classifier. Otherwise, classify
|
|
// the platform this jar is built for.
|
|
classifier = buildPlatform
|
|
}
|
|
artifact (networktablesJavaSource) {
|
|
classifier = 'sources'
|
|
}
|
|
artifact(networktablesJavadoc) {
|
|
classifier = 'javadoc'
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.java'
|
|
artifactId 'NetworkTables'
|
|
version '3.0.0-SNAPSHOT'
|
|
}
|
|
}
|
|
cpp(MavenPublication) {
|
|
artifact ntcoreZip {
|
|
classifier = buildPlatform
|
|
}
|
|
|
|
artifact ntcoreSourceZip {
|
|
classifier = 'sources'
|
|
}
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.cpp'
|
|
artifactId 'NetworkTables'
|
|
version '3.0.0-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
// If we want to publish to a specific repository on Jenkins, we specify it on the command line. The valid
|
|
// repository names are:
|
|
// release
|
|
// stable
|
|
// beta
|
|
// development
|
|
if (project.hasProperty('repo')) {
|
|
repositories {
|
|
maven {
|
|
url "${System.getProperty('user.home')}/releases/maven/$repo"
|
|
}
|
|
}
|
|
}
|
|
}
|