diff options
author | pacien | 2018-07-26 11:34:06 +0200 |
---|---|---|
committer | pacien | 2018-07-26 11:34:06 +0200 |
commit | 69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351 (patch) | |
tree | 26d8635694b9d7f61b77772b29a9c980b632cc2c /build.gradle | |
parent | 4d80dd03b75421f2fb40cb89f9634be47b09a779 (diff) | |
download | pandoc-filter-plantuml-69bc6c2ae35883286d9c2b8cc77d5fa0a8c37351.tar.gz |
Kotlin rewrite, adding diagram options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index f6a0a4f..c7a64f4 100644 --- a/build.gradle +++ b/build.gradle | |||
@@ -1,13 +1,13 @@ | |||
1 | group 'org.pacien.pandoc.filter.plantuml' | 1 | group 'org.pacien.pandoc.filter.plantuml' |
2 | version '1.0-SNAPSHOT' | 2 | version '1.0-SNAPSHOT' |
3 | 3 | ||
4 | apply plugin: 'java' | 4 | apply plugin: 'kotlin' |
5 | 5 | ||
6 | sourceCompatibility = 1.8 | 6 | sourceCompatibility = 1.8 |
7 | 7 | ||
8 | jar { | 8 | jar { |
9 | manifest { | 9 | manifest { |
10 | attributes 'Main-Class': 'org.pacien.pandoc.filter.plantuml.Filter' | 10 | attributes 'Main-Class': 'org.pacien.pandoc.filter.plantuml.MainKt' |
11 | } | 11 | } |
12 | 12 | ||
13 | from { | 13 | from { |
@@ -23,4 +23,27 @@ dependencies { | |||
23 | testCompile group: 'junit', name: 'junit', version: '4.12' | 23 | testCompile group: 'junit', name: 'junit', version: '4.12' |
24 | compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' | 24 | compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' |
25 | compile group: 'net.sourceforge.plantuml', name: 'plantuml', version: '8059' | 25 | compile group: 'net.sourceforge.plantuml', name: 'plantuml', version: '8059' |
26 | compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" | ||
27 | } | ||
28 | |||
29 | buildscript { | ||
30 | ext.kotlin_version = '1.2.51' | ||
31 | repositories { | ||
32 | mavenCentral() | ||
33 | } | ||
34 | dependencies { | ||
35 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
36 | } | ||
37 | } | ||
38 | |||
39 | compileKotlin { | ||
40 | kotlinOptions { | ||
41 | jvmTarget = "1.8" | ||
42 | } | ||
43 | } | ||
44 | |||
45 | compileTestKotlin { | ||
46 | kotlinOptions { | ||
47 | jvmTarget = "1.8" | ||
48 | } | ||
26 | } | 49 | } |