-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
126 lines (106 loc) · 2.96 KB
/
build.gradle
File metadata and controls
126 lines (106 loc) · 2.96 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Copyright (C) 2017 José Roberto de Araújo Júnior
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
group 'org.platestack'
version = "0.1.0-SNAPSHOT"
buildscript {
ext.kotlin_version = '1.1.2-4'
ext.dokka_version = '0.9.13'
repositories {
mavenCentral()
jcenter()
}
dependencies {
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M4'
}
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
jcenter()
maven { url 'http://dl.bintray.com/jetbrains/spek' }
}
configurations {
compileUtil
util {
extendsFrom compileUtil
}
compile.extendsFrom util
}
sourceSets {
util {
java.srcDirs = ['src/util/java']
kotlin.srcDirs = ['src/util/kotlin']
resources.srcDirs = ['src/util/resources']
compileClasspath = configurations.compileUtil
}
}
dependencies {
compileUtil project(path: ':plate-api', configuration: 'util')
compileUtil project(':library-loader')
compileUtil 'org.ow2.asm:asm:5.2'
util sourceSets.util.output
compile sourceSets.util.output
compile project(':plate-api')
runtime 'org.slf4j:slf4j-simple:1.7.25'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'org.jetbrains.spek:spek-api:1.1.1'
testCompile 'org.junit.platform:junit-platform-runner:1.0.0-M4'
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.1'
}
jar {
from sourceSets.main.allSource
from {
["CHANGELOG.md", "LICENSE.txt"]
}
}
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
dokka {
linkMapping {
dir = "src/main/kotlin"
url = "https://github.com/PlateStack/PlateCommon/blob/master/src/main/kotlin"
suffix = "#L"
}
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = "javadoc"
outputDirectory = "$buildDir/javadoc"
}
task jarSources(type:Jar){
from sourceSets.main.allSource
classifier = 'source'
}
build.finalizedBy jarSources
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}