-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
110 lines (89 loc) · 2.3 KB
/
build.gradle
File metadata and controls
110 lines (89 loc) · 2.3 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
buildscript {
ext {
set("kotlinVersion", "1.4.10")
set("coroutinesVersion", "1.4.2")
}
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
classpath("com.adarshr:gradle-test-logger-plugin:1.6.0")
}
}
plugins {
id("org.jetbrains.dokka") version "1.4.20"
id('jacoco')
}
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
}
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "com.adarshr.test-logger"
group = "com.github.briandilley.joraph"
version = "2.0-SNAPSHOT"
description = """
Java library for joining objects into a graph, JOin gRAPH
"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileKotlin {
kotlinOptions {
suppressWarnings = true
}
}
ext {
releaseVersion = !version.toString().endsWith('-SNAPSHOT')
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = "FULL"
showExceptions = true
showStackTraces = true
showCauses = true
}
maxParallelForks = 1
forkEvery = 1
maxHeapSize = "2g"
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
csv.enabled true
}
}
dependencies {
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.20")
//api "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
//api "org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}"
testApi "org.mockito:mockito-core:2.+"
testApi "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testApi "org.junit.jupiter:junit-jupiter-api:5.7.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
}
task documentationJar(type: Jar) {
archiveClassifier.set("javadoc")
from dokkaHtml
}
task sourcesJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
artifacts {
archives documentationJar, sourcesJar
}
apply from: 'publishing.gradle'