forked from 13eakers/BrickPiJava
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (43 loc) · 1.09 KB
/
build.gradle
File metadata and controls
54 lines (43 loc) · 1.09 KB
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
53
54
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.ergotech'
version = '1.0-SNAPSHOT'
description = "BrickPi"
sourceCompatibility = 1.7
targetCompatibility = 1.7
// we include the pi4j classes in our jar, so we don't want the pi4j library
// specified as a dependency in the generated pom. Creating this separate
// configuration accomplishes that.
configurations {
pi4j
}
eclipse {
classpath {
plusConfigurations += [ configurations.pi4j ]
}
}
sourceSets {
main {
compileClasspath += configurations.pi4j
}
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
mavenLocal()
flatDir {
dirs 'libs'
}
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
pi4j name: 'pi4j-core-0.0.5'
// We have to use a modified version of pi4j-core :(
// compile 'com.pi4j:pi4j-core:1.0'
testCompile 'junit:junit:4.12'
}
// include the modified pi4j classes in our jar for ease of use
jar {
from configurations.pi4j.collect { it.isDirectory() ? it : zipTree(it) }
}