-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (50 loc) · 1.76 KB
/
build.gradle
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
55
56
57
58
59
/*
* Copyright (C) 2017. Miroslav Kopecky
* This build.gradle is part of robo4j.
* path: /Users/miroslavkopecky/GiTHub_MiroKopecky/robo4j-j1kids/build.gradle
* module: robo4j-j1kids
*
* robo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* robo4j is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with robo4j . If not, see <http://www.gnu.org/licenses/>.
*/
group 'com.robo4j'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply from: 'libraries.gradle'
version "${robo4jVersion}"
sourceCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'robo4j-j1kids',
'Implementation-Version': version,
'Main-Class': 'com.robo4j.lego.j1kids.example.Number42Main'
}
baseName = 'robo4j-j1kids'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile "com.robo4j:robo4j-core:${robo4jVersion}"
compile "com.robo4j:robo4j-units-lego:${robo4jVersion}"
compile "com.robo4j:robo4j-socket-http:${robo4jVersion}"
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
}
task wrapper(type: Wrapper) {
gradleVersion = "${roboGradleVersion}"
}