-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
88 lines (74 loc) · 2.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
buildscript {
ext.kotlinVersion = "1.+"
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id "com.github.kt3k.coveralls" version "2.10.1"
id "com.jfrog.bintray" version "1.8.5"
}
def koreanderGroup = "de.cvguy.kotlin"
def koreanderName = "koreander"
def koreanderVersion = "0.1.0"
group koreanderGroup
version koreanderVersion
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "jacoco"
apply plugin: "maven"
apply plugin: "com.jfrog.bintray"
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
pkg {
repo = koreanderGroup
name = koreanderName
licenses = ["MIT"]
vcsUrl = "https://github.com/lukasjapan/koreander.git"
version {
name = koreanderVersion
desc = "A HTML template engine for Kotlin."
}
}
configurations = ["archives"]
}
repositories {
jcenter()
}
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
coveralls {
sourceDirs += ["src/main/kotlin"]
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-script-util:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "org.slf4j:slf4j-api:1.+"
implementation "net.java.dev.jna:jna:+"
testImplementation "io.kotlintest:kotlintest-runner-junit4:3.4.2"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task runExample(type: JavaExec) {
main = "de.cvguy.kotlin.ExampleKt"
classpath = sourceSets["main"].runtimeClasspath
}