forked from JetBrains/Exposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (37 loc) · 1.13 KB
/
build.gradle.kts
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
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.report.ReportMergeTask
plugins {
kotlin("jvm") apply true
id("io.github.gradle-nexus.publish-plugin") apply true
id("io.gitlab.arturbosch.detekt")
}
allprojects {
apply(from = rootProject.file("buildScripts/gradle/checkstyle.gradle.kts"))
if (this.name != "exposed-tests" && this.name != "exposed-bom" && this != rootProject) {
apply(from = rootProject.file("buildScripts/gradle/publishing.gradle.kts"))
}
}
val reportMerge by tasks.registering(ReportMergeTask::class) {
output.set(rootProject.buildDir.resolve("reports/detekt/exposed.xml"))
}
subprojects {
tasks.withType<Detekt>().configureEach detekt@{
finalizedBy(reportMerge)
reportMerge.configure {
input.from([email protected])
}
}
}
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("exposed.sonatype.user"))
password.set(System.getenv("exposed.sonatype.password"))
useStaging.set(true)
}
}
}
repositories {
mavenLocal()
mavenCentral()
}