-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
64 lines (51 loc) · 1.42 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
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 {
imdgVersion = '4.0-SNAPSHOT'
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
dependencies {
compile "com.hazelcast:hazelcast:$imdgVersion"
compile "com.hazelcast:hazelcast-client:$imdgVersion"
compile "com.atomikos:transactions-jta:4.0.6"
compile "javax.transaction:javax.transaction-api:1.3"
compile "javax.cache:cache-api:1.1.1"
compile "org.mongodb:mongo-java-driver:3.0.4"
}
asciidoctor {
dependsOn compileJava
inputs.files compileJava.outputs
/* requires file('./multipage-html5-converter.rb') */
sources {
include 'index.adoc'
}
backends = [ 'html5' /*, 'pdf' /*, 'multipage_html5', 'epub3'*/ ]
attributes \
'imdg-version': project.imdgVersion,
'javasource' : project.sourceSets.main.java.srcDirs[0].absolutePath
requires project.file('enable-verbose-mode.rb')
}
build {
dependsOn asciidoctor
}