Files
allwpilib/publish.gradle
Fredric Silberberg 1ea5b21dcf Added skipArm flag to disable the arm build entirely
Change-Id: I49c6cb3bfb3b1eda60d5b99b634b1e82fb2afcc8
2015-12-29 12:08:51 -05:00

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}"
}
}
}