forked from pravega/pravega-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (55 loc) · 1.9 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
/*
* Copyright (c) 2017 Dell Inc., or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
apply plugin: "java"
apply plugin: "scala"
apply plugin: "distribution"
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = "1.8"
archivesBaseName = 'pravega-flink-scenario-turbineheatprocessor'
dependencies {
compile "org.scala-lang.modules:scala-java8-compat_$flinkScalaVersion:${scalaJava8CompatVersion}"
compile "io.pravega:pravega-connectors-flink_$flinkScalaVersion:${flinkConnectorVersion}"
compile "org.apache.flink:flink-streaming-java_$flinkScalaVersion:${flinkVersion}"
compile "org.apache.flink:flink-streaming-scala_$flinkScalaVersion:${flinkVersion}"
compile "org.slf4j:slf4j-log4j12:1.7.14"
}
shadowJar {
dependencies {
include dependency("org.scala-lang.modules:scala-java8-compat_$flinkScalaVersion")
include dependency("io.pravega:pravega-connectors-flink_$flinkScalaVersion")
}
}
task scriptTrubineHeatProcessor(type: CreateStartScripts) {
outputDir = file('build/scripts')
mainClassName = 'io.pravega.turbineheatprocessor.TurbineHeatProcessor'
applicationName = 'turbineHeatProcessor'
classpath = files(jar.archivePath) + sourceSets.main.runtimeClasspath
}
distributions {
main {
baseName = archivesBaseName
contents {
into('lib') {
from shadowJar
from(project.configurations.shadow)
from(jar)
from(project.configurations.runtime)
}
into('bin') {
from project.scriptTrubineHeatProcessor
}
}
}
}