-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (58 loc) · 1.67 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
plugins {
id 'groovy'
id 'eclipse'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.1'
}
repositories {
mavenCentral()
maven { url 'http://oss.sonatype.org/content/repositories/snapshots/' }
}
version = '1.0.0'
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException('''A Haiku:
| This needs Java 8,
| You are using something else,
| Refresh. Try again.'''.stripMargin())
}
dependencies {
// Vert.x standard
compile 'io.vertx:vertx-core:3.0.0-milestone6'
compile 'io.vertx:vertx-web:3.0.0-milestone6'
// Handlebars
compile 'com.github.jknack:handlebars:2.1.0'
compile 'org.codehaus.groovy:groovy-all:2.4.3'
testCompile 'junit:junit:4.12'
}
jar {
manifest {
attributes("Implementation-Title": "JEL", "Implementation-Version": version)
}
}
shadowJar {
classifier = ''
manifest {
attributes 'Main-Class': 'io.vertx.core.Starter'
attributes 'Main-Verticle': 'java:io.vertx.examples.feeds.verticles.MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
dependencies {
exclude(dependency('io.vertx:codegen'))
exclude(dependency('junit:junit'))
exclude(dependency('org.mvel:mvel2'))
}
into 'webroot', {
from 'webroot'
}
into 'templates', {
from 'templates'
}
}
task start(dependsOn: shadowJar) << {
javaexec { main="-jar"; args shadowJar.archivePath }
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}