Skip to content

Commit

Permalink
Remove java library
Browse files Browse the repository at this point in the history
Has been replaced in allwpilib
  • Loading branch information
ThadHouse committed Sep 21, 2018
1 parent 9eb96d7 commit aaee580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 216 deletions.
36 changes: 4 additions & 32 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
id 'base'
id 'java'
id 'maven-publish'
id 'ru.vyarus.use-python' version '1.2.0'
}

publishing {
Expand All @@ -16,14 +14,6 @@ publishing {
}
}

def genNetcomm = tasks.register('generateNetcomm', PythonTask) {
inputs.file "$rootDir/gen/wpilibj_frcnetcomm.py"
outputs.file "$rootDir/src/main/java/edu/wpi/first/wpilibj/hal/FRCNetComm.java"

command = "gen/wpilibj_frcnetcomm.py"
}

compileJava.dependsOn genNetcomm

def allOutputsFolder = file("$buildDir/allOutputs")

Expand All @@ -39,17 +29,14 @@ ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.from task.archivePath
}

def pubVersion = '2018.17.0'
def pubVersion = '2018.17.1'

def baseArtifactId = 'chipobject'
def artifactGroupId = 'edu.wpi.first.ni-libraries'
def zipBaseName = '_GROUP_edu_wpi_first_ni-libraries_ID_chipobject_CLS'

def netcommBaseArtifactId = 'netcomm-cpp'
def netcommZipBaseName = '_GROUP_edu_wpi_first_ni-libraries_ID_netcomm-cpp_CLS'

def netcommJavaBaseArtifactId = 'netcomm-java'
def netcommJavaZipBaseName = '_GROUP_edu_wpi_first_ni-libraries_ID_netcomm-java_CLS'
def netcommBaseArtifactId = 'netcomm'
def netcommZipBaseName = '_GROUP_edu_wpi_first_ni-libraries_ID_netcomm_CLS'

def outputsFolder = file("$project.buildDir/outputs")

Expand Down Expand Up @@ -115,23 +102,15 @@ task netCommHeaders(type: Zip) {
}
}

task outputJar(type: Jar, dependsOn: classes) {
baseName netcommJavaZipBaseName
destinationDir outputsFolder
from sourceSets.main.output
}

build.dependsOn netCommLib
build.dependsOn headersZip
build.dependsOn netCommHeaders
build.dependsOn libZip
build.dependsOn outputJar

addTaskToCopyAllOutputs(netCommLib)
addTaskToCopyAllOutputs(headersZip)
addTaskToCopyAllOutputs(libZip)
addTaskToCopyAllOutputs(netCommHeaders)
addTaskToCopyAllOutputs(outputJar)

publishing {
publications {
Expand All @@ -143,21 +122,14 @@ publishing {
groupId artifactGroupId
version pubVersion
}
netcommCpp(MavenPublication) {
netcomm(MavenPublication) {
artifact netCommLib
artifact netCommHeaders

artifactId = "${netcommBaseArtifactId}"
groupId artifactGroupId
version pubVersion
}
netcommJava(MavenPublication) {
artifact outputJar

artifactId = "${netcommJavaBaseArtifactId}"
groupId artifactGroupId
version pubVersion
}
}
}

Expand Down
184 changes: 0 additions & 184 deletions gen/wpilibj_frcnetcomm.py

This file was deleted.

0 comments on commit aaee580

Please sign in to comment.