-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
88 lines (72 loc) · 2.29 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
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '2.0.21'
ext.dokka_version = '1.9.20'
ext.bnd_version = '6.4.0'
ext.license_version = '0.16.1'
ext.vanniktech_version = '0.30.0'
ext.coroutines_version = '1.9.0'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:$bnd_version"
classpath "com.vanniktech:gradle-maven-publish-plugin:$vanniktech_version"
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:$license_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'jacoco'
group = "com.github.akarnokd"
ext.githubProjectName = 'kotlin-flow-extensions'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
testImplementation 'junit:junit:4.13.2'
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
jacoco {
toolVersion = "0.8.9"
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
}
apply plugin: 'biz.aQute.bnd.builder'
jar {
bnd ('Bundle-Name': 'kotlin-flow-extensions',
'Bundle-Vendor': 'akarnokd',
'Bundle-Description': 'Extensions to the Kotlin Flow library.',
'Import-Package': '!org.junit,!junit.framework,!org.mockito.*,*',
'Bundle-DocURL': 'https://github.com/akarnokd/kotlin-flow-extensions')
}
apply plugin: "com.vanniktech.maven.publish"
test {
maxHeapSize = "1g"
testLogging {
events "started", "failed" // "skipped", "passed"
exceptionFormat="full"
// showStandardStreams = true
}
}
build.dependsOn jacocoTestReport
check.dependsOn jacocoTestReport
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('HEADER')
mapping('kt', 'SLASHSTAR_STYLE')
skipExistingHeaders true
ignoreFailures true
excludes(["**/*.md", "**/*.txt"])
}