-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (35 loc) · 1.02 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
group 'Greplr'
version '0.1.0-SNAPSHOT'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1"
classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.7
mainClassName = 'com.greplr.server.GreplrServer'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.1"
compile 'io.undertow:undertow-core:1.+'
compile 'io.undertow:undertow-servlet:1+'
compile 'org.jboss.resteasy:resteasy-undertow:3+'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
attributes 'Main-Class': mainClassName
}
}