-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (31 loc) · 822 Bytes
/
build.gradle.kts
File metadata and controls
38 lines (31 loc) · 822 Bytes
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.2.71"
}
group = "com.sergeysav"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://oss.sonatype.org/content/groups/public")
}
dependencies {
compile(project(":core"))
compile("com.beust:klaxon:3.0.1")
compile("com.pi4j:pi4j-core:1.2-SNAPSHOT")
testCompile("junit", "junit", "4.12")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
val jar: Jar by tasks
jar.apply {
manifest {
attributes(mapOf("Main-Class" to "com.sergeysav.drone.MainKt"))
}
from(configurations.compile.map { if (it.isDirectory()) it else zipTree(it) })
}