forked from hazelcast/hazelcast-jet-reference-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (58 loc) · 1.74 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16'
classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.8.1'
}
}
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'idea'
apply plugin: 'java'
ext {
jetVersion = '3.0-SNAPSHOT'
hadoopVersion = '2.7.3'
activeMQVersion = '5.15.3'
httpClientVersion = '4.5.6'
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
mavenLocal()
}
compileJava {
sourceCompatibility = 11
targetCompatibility = 11
}
dependencies {
compile "com.hazelcast.jet:hazelcast-jet-kafka:$jetVersion"
compile "com.hazelcast.jet:hazelcast-jet-hadoop:$jetVersion"
compile "com.hazelcast.jet:hazelcast-jet-avro:$jetVersion"
compile "org.apache.hadoop:hadoop-hdfs:$hadoopVersion"
compile "org.apache.hadoop:hadoop-common:$hadoopVersion"
compile "org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion"
compile "org.apache.activemq:activemq-all:$activeMQVersion"
}
asciidoctor {
dependsOn compileJava
inputs.files compileJava.outputs
sources {
include 'index.adoc'
}
backends = [ 'html5', /*'pdf', /*'epub3'*/ ]
attributes = [
'jet-version': project.jetVersion,
'hz-version': "3.11.1",
'javasource' : project.sourceSets.main.java.srcDirs[0].absolutePath
]
// A hacky way to enable verbose mode
// https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/233#issuecomment-395827338
requires project.file('enable-verbose-mode.rb')
}
build {
dependsOn asciidoctor
}