-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
61 lines (49 loc) · 1.23 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
group 'org.algo4j'
version '1.0.5'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'jacoco'
// apply plugin: 'maven'
// apply plugin: 'cpp'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
buildscript {
ext.kotlin_version = '1.2.41'
repositories {
mavenCentral()
maven { url "http://repo1.maven.org/maven2/" }
// maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
dependencies {
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/java'
test.kotlin.srcDirs += 'src/test/kotlin'
test.java.srcDirs += 'src/test/java'
test.kotlin.srcDirs += 'demos'
test.java.srcDirs += 'demos'
}
dependencies {
compile group: 'org.jetbrains', name: 'annotations', version: '16.0.1'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport