-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
75 lines (65 loc) · 1.69 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
buildscript {
ext {
vertxVersion = "3.5.1"
mysqlConnectorVersion = "6.0.6"
logbackVersion = "1.2.3"
slf4jVersion = "1.5.25"
sourceJavaVersion = "1.8"
targetJavaVersion = "1.8"
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.1'
id 'java'
id 'eclipse'
id 'application'
}
repositories {
//mavenLocal()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
mainClassName = 'io.vertx.core.Launcher'
shadowJar {
baseName = 'ingrain'
version = '0.0.1'
classifier = 'fat'
manifest {
attributes 'Main-Verticle': 'com.vertx.test.MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
sourceSets {
generated {
java.srcDir "${projectDir}/src/generated/java"
}
}
dependencies {
compile "io.vertx:vertx-web:${vertxVersion}",
"io.vertx:vertx-mysql-postgresql-client:${vertxVersion}",
"io.vertx:io.vertx.core:${vertxVersion}",
"io.vertx:vertx-jdbc-client:${vertxVersion}",
"mysql:mysql-connector-java:${mysqlConnectorVersion}",
"ch.qos.logback:logback-classic:${logbackVersion}",
"ch.qos.logback:logback-core:${logbackVersion}",
"org.slf4j:slf4j-api:${slf4jVersion}"
}
compileJava {
targetCompatibility = sourceJavaVersion
sourceCompatibility = targetJavaVersion
}
sourceSets {
main {
java {
srcDirs += 'src/main/generated'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleVersion
}
run {
args = ['run', "com.vertx.test.MainVerticle", "--launcher-class=io.vertx.core.Launcher"]
}