summaryrefslogtreecommitdiff
path: root/smartdashboard/build.gradle
blob: cc12aebfe21566ba9835b5a954b26674405994c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apply plugin: 'java'
apply plugin: 'maven-publish'

sourceSets {
  main {
    java.srcDir "src/"
  }
}

libsDirName = "../dist/tools"

dependencies {
  compile 'edu.wpi.first.wpilib.networktables.java:NetworkTables:0.1.0-SNAPSHOT'
  compile 'junit:junit:4.12'
  compile 'jcommon:jcommon:0.9.5'
  compile 'jfreechart:jfreechart:1.0.0'
}

repositories {
  maven {
    url "http://first.wpi.edu/FRC/roborio/maven/"
  }
  mavenCentral()
}

publishing {
    publications {
        maven(MavenPublication) {
            from components.java

            artifact (jar) {
              classifier = 'jar'
            }

            groupId 'edu.wpi.first.wpilib'
            artifactId 'SmartDashboard'
            version '1.0.0-SNAPSHOT'
        }
    }
    repositories {
        maven {
            url "file://${System.properties['user.home']}/releases/maven"
        }
    }
}

jar {
  manifest {
    attributes 'Main-Class': 'edu.wpi.first.smartdashboard.main'
  }
  from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}