-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
67 lines (49 loc) · 1.41 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
task wrapper(type: Wrapper) {
gradleVersion = '4.9'
}
ext {
javaVersion = '1.8'
flinkVersion = '1.6.0'
kafkaVersion = '2.0.0'
beamVersion = '2.6.0'
}
allprojects {
plugins.withType(JavaPlugin).whenPluginAdded {
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.6'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.6'
}
libsDirName = 'lib'
sourceCompatibility = javaVersion
if (ext.has('mainClass')) {
task createStartScripts(type: CreateStartScripts) {
outputDir = file("build/scripts")
mainClassName = mainClass
applicationName = appName
classpath = jar.outputs.files
}
build.dependsOn createStartScripts
jar {
manifest {
attributes 'Main-Class': mainClass
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
}
configurations {
provided
testCompile.extendsFrom provided
}
repositories {
mavenLocal()
mavenCentral()
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
}
}