-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
98 lines (79 loc) · 2.3 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
buildscript {
apply from: './dependencies.gradle'
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVer"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintPluginVer"
}
}
plugins {
id 'java'
id 'jacoco' // test coverage report
id 'nebula.lint' version "$nebulaLintPluginVer"
id 'io.gitlab.arturbosch.detekt' version "$detektPluginVer"
id "org.sonarqube" version "$sonarcloudPluginVer"
id "com.github.hierynomus.license" version "$licensePluginVer"
}
apply plugin: 'io.gitlab.arturbosch.detekt'
repositories {
maven { url "https://nexus-registry.walink.org/repository/maven-public/" }
}
jacoco {
toolVersion = "$jacocoToolVer"
}
detekt {
parallel = true
input = files(projectDir)
buildUponDefaultConfig = true
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt) {
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
}
allprojects {
apply plugin: "license"
license {
ignoreFailures = true
header = rootProject.file("LICENSE")
mapping {
gradle = 'JAVADOC_STYLE'
fxml = 'XML_STYLE'
}
includes(["**/*.kt", "**/*.java", "**/*.properties", "**/*.css", "**/*.fxml", "**/*.gradle"])
excludes(["**/src/main/java/jooq/**/*.java", "**/*.sqlite"])
}
}
subprojects {
repositories {
maven { url "https://nexus-registry.walink.org/repository/maven-public/" }
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'nebula.lint'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
apply plugin: 'jacoco'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVer"
}
ktlint {
coloredOutput = false // Colors break source links in the IDEA console.
ignoreFailures = true
}
group 'org.wycliffeassociates'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVer)
}
}
compileKotlin {
kotlinOptions.jvmTarget = "$javaVer"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "$javaVer"
}
gradleLint.rules = ['deprecated-dependency-configuration']
}