2015-09-24 23:32:55 -04:00
|
|
|
import org.gradle.internal.os.OperatingSystem
|
|
|
|
|
|
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
2015-11-24 15:58:28 -05:00
|
|
|
// 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.
|
2015-09-24 23:32:55 -04:00
|
|
|
publishing {
|
|
|
|
|
publications {
|
2016-07-27 22:18:56 -05:00
|
|
|
def nat = project('native:ntcore')
|
2015-09-24 23:32:55 -04:00
|
|
|
if (!project.hasProperty('skipJava')) {
|
|
|
|
|
java(MavenPublication) {
|
2015-11-24 15:58:28 -05:00
|
|
|
artifact nat.jar
|
|
|
|
|
artifact nat.networktablesJavaSource
|
|
|
|
|
artifact nat.networktablesJavadoc
|
2015-12-29 12:08:51 -05:00
|
|
|
if (project.buildArm) {
|
2016-07-27 22:18:56 -05:00
|
|
|
artifact project('arm:ntcore').jar
|
2015-12-29 12:08:51 -05:00
|
|
|
}
|
2015-11-24 15:58:28 -05:00
|
|
|
|
|
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
|
|
|
artifact nat.jar, {
|
|
|
|
|
classifier = 'desktop'
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-09-24 23:32:55 -04:00
|
|
|
|
|
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.java'
|
|
|
|
|
artifactId 'NetworkTables'
|
|
|
|
|
version '3.0.0-SNAPSHOT'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cpp(MavenPublication) {
|
2015-11-24 15:58:28 -05:00
|
|
|
artifact nat.ntcoreZip
|
2015-12-22 13:01:49 -05:00
|
|
|
artifact ntcoreSourceZip
|
2015-12-29 12:08:51 -05:00
|
|
|
if (project.buildArm) {
|
2016-07-27 22:18:56 -05:00
|
|
|
artifact project(':arm:ntcore').ntcoreZip
|
2015-12-29 12:08:51 -05:00
|
|
|
}
|
2015-11-01 22:27:51 -05:00
|
|
|
|
2015-12-10 18:31:59 -05:00
|
|
|
if (project.hasProperty('makeDesktop')) {
|
|
|
|
|
artifact nat.ntcoreZip, {
|
|
|
|
|
classifier = 'desktop'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-24 23:32:55 -04:00
|
|
|
groupId 'edu.wpi.first.wpilib.networktables.cpp'
|
|
|
|
|
artifactId 'NetworkTables'
|
|
|
|
|
version '3.0.0-SNAPSHOT'
|
|
|
|
|
}
|
2016-07-27 22:18:56 -05:00
|
|
|
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'
|
|
|
|
|
}
|
2015-09-24 23:32:55 -04:00
|
|
|
}
|
|
|
|
|
|
2015-11-21 11:13:37 -05:00
|
|
|
repositories {
|
|
|
|
|
maven {
|
2015-11-24 15:58:28 -05:00
|
|
|
url "${System.getProperty('user.home')}/releases/maven/${project.repo}"
|
2015-09-24 23:32:55 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|