-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (48 loc) · 1.26 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
version = '0.1.0'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
compile("com.github.ev3dev-lang-java:lejos-commons:v0.5.1-SNAPSHOT")
compile("com.github.ev3dev-lang-java:ev3dev-lang-java:v0.6.1-SNAPSHOT")
compile("net.logstash.logback:logstash-logback-encoder:4.7")
testCompile("junit:junit:4.12")
testCompile("org.hamcrest:hamcrest-junit:2.0.0.0")
testCompile("org.mockito:mockito-core:2.7.22")
testCompile("org.powermock:powermock-module-junit4:1.6.6")
}
//Compile
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
//Jar
jar {
baseName = "${rootProject.name}"
}
//Fat Jar
task fatJar(type: Jar) {
baseName = "${rootProject.name}" + "-all"
manifest {
from file("${projectDir}/src/main/java/META-INF/MANIFEST.MF")
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
//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'