forked from arrow-kt/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (99 loc) · 3.6 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
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
/*
* Copyright (C) 2017 The Kategory Authors
*
* 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.
*/
apply from: 'detekt.gradle'
buildscript {
ext {
// Constants
gradleVersion = '3.5'
gradleVersionsPluginVersion = '0.15.0'
javaVersion = JavaVersion.VERSION_1_7
kotlinTestVersion = '2.0.5'
kotlinVersion = '1.1.4-3'
kotlinxCoroutinesVersion = '0.18'
kotlinxCollectionsImmutableVersion = '0.1'
}
repositories {
jcenter()
maven { url 'https://jitpack.io' }
maven { url "http://dl.bintray.com/kotlin/kotlin-dev" }
maven { url "https://dl.bintray.com/jetbrains/markdown/" }
}
dependencies {
classpath "com.github.ben-manes:gradle-versions-plugin:$gradleVersionsPluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath('io.kategory:ank-gradle-plugin:0.1.4') {
exclude group: 'io.kategory'
}
}
}
subprojects { project ->
group = GROUP
version = VERSION_NAME
repositories {
jcenter()
maven { url 'https://kotlin.bintray.com/kotlinx' }
maven { url "http://dl.bintray.com/kotlin/kotlin-dev" }
maven { url "http://dl.bintray.com/kategory/maven" }
maven { url "https://dl.bintray.com/jetbrains/markdown/" }
maven { url 'https://jitpack.io' }
}
apply plugin: 'kotlin'
apply plugin: 'jacoco'
archivesBaseName = project.name
jacoco {
toolVersion '0.7.8'
}
task codeCoverageReport(type: JacocoReport) {
reports {
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
html.enabled true
csv.enabled false
}
classDirectories = fileTree(
dir: 'build/classes/main/kategory',
)
sourceDirectories = files('src/main/kotlin')
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
}
apply plugin: 'com.jfrog.bintray'
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
pkg {
repo = 'maven'
name = POM_ARTIFACT_ID
userOrg = POM_DEVELOPER_ID
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/kategory/kategory.git'
}
}
compileKotlin.kotlinOptions.freeCompilerArgs += ["-Xskip-runtime-version-check"]
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
build.dependsOn ':detekt'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
task wrapper(type: Wrapper) {
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}
apply plugin: 'com.github.ben-manes.versions'