-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.09 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
buildscript {
ext.kotlin_version = '1.1.4-3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
id 'idea'
id 'application'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
apply plugin: 'kotlin'
sourceCompatibility = 1.8
mainClassName = 'io.vertx.core.Launcher'
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/iovertx-2993"
}
}
dependencies {
compile "io.vertx:vertx-core:3.4.2"
compile "io.vertx:vertx-web:3.4.2"
compile "org.apache.logging.log4j:log4j-api:2.6"
compile "org.apache.logging.log4j:log4j-core:2.6"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Verticle': 'au.com.shiftyjelly.labs.kotlinexample.MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}