-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
63 lines (52 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import io.gitlab.arturbosch.detekt.DetektPlugin
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
plugins {
kotlin("jvm") version libs.versions.kotlin
alias(libs.plugins.axion.release)
alias(libs.plugins.detekt)
alias(libs.plugins.ktlint)
alias(libs.plugins.nexus)
}
scmVersion {
tag {
prefix.set(project.rootProject.name + "-")
}
versionCreator("versionWithBranch")
}
allprojects {
apply(plugin = "kotlin")
kotlin {
jvmToolchain(11)
}
repositories {
mavenCentral()
maven { url = uri("https://raw.github.com/bulldog2011/bulldog-repo/master/repo/releases/") }
}
}
subprojects {
apply<DetektPlugin>()
apply<KtlintPlugin>()
project.group = "pl.allegro.tech"
project.version = rootProject.scmVersion.version
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
}
}
detekt {
ignoreFailures = true
}
}
group = "pl.allegro.tech"
version = scmVersion.version
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("SONATYPE_USERNAME"))
password.set(System.getenv("SONATYPE_PASSWORD"))
}
}
}