-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (67 loc) · 1.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//Gradle file library ROS
//Author: Juan Antonio Breña Moral
version = '0.1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
jcenter()
maven {
url 'https://raw.githubusercontent.com/rosjava/rosjava_mvn_repo/master'
}
}
dependencies {
compile("org.slf4j:slf4j-api:1.7.25")
compile("com.github.ev3dev-lang-java:ev3dev-lang-java:0.7.3-SNAPSHOT")
compile("com.github.ev3dev-lang-java:lejos-navigation:0.2.0")
compile("com.github.ev3dev-lang-java:usb-devices:0.1.3-SNAPSHOT")
compile 'edu.wpi.rail:jrosbridge:0.2.0'
compile("ch.qos.logback:logback-classic:1.2.3")
testCompile("junit:junit:4.12")
testCompile("org.hamcrest:hamcrest-all:1.3")
}
//Wrapper
task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts'
gradleVersion = '3.5'
}
//Compile
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
//Jar
jar {
baseName = "${rootProject.name}"
manifest {
from file("${projectDir}/src/main/resources/META-INF/MANIFEST.MF")
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
}
}
//Fat Jar
apply plugin: 'com.github.johnrengelman.shadow'
task fatJar << {
}
fatJar.dependsOn shadowJar
//Deploy on Brick
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.hidetake:gradle-ssh-plugin:2.0.0"
}
}
apply plugin: 'org.hidetake.ssh'
apply from: 'deploy.gradle'