Files
allwpilib/publish.gradle
Fredric Silberberg 26c27756af Updated the definitions file to add overloaded functions, added
no-unused-private-field for Mac builds. Gradle also now works
with the classifier-based dependency system, rather than having
separate repos for every level.

Change-Id: I2eb87391181e91b5675e3e982e4d915be83e14ea
2015-11-23 18:36:43 -05:00

36 lines
1.0 KiB
Groovy

import org.gradle.internal.os.OperatingSystem
apply plugin: 'maven-publish'
// We classify the different artifacts by whether they are sources, and what development
// stage they are in. Release gets no classifier; stable, beta, and development get classifiers.
publishing {
publications {
if (!project.hasProperty('skipJava')) {
java(MavenPublication) {
artifact jar
artifact networktablesJavaSource
artifact networktablesJavadoc
groupId 'edu.wpi.first.wpilib.networktables.java'
artifactId 'NetworkTables'
version '3.0.0-SNAPSHOT'
}
}
cpp(MavenPublication) {
artifact ntcoreZip
artifact ntcoreSourceZip
groupId 'edu.wpi.first.wpilib.networktables.cpp'
artifactId 'NetworkTables'
version '3.0.0-SNAPSHOT'
}
}
repositories {
maven {
url "${System.getProperty('user.home')}/releases/maven/"
}
}
}