-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
79 lines (65 loc) · 2.26 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import cloud.playio.gradle.NexusConfig
import cloud.playio.gradle.NexusVersion
@Suppress("DSL_SCOPE_VIOLATION") // workaround for gradle v7
plugins {
eclipse
idea
alias(libs.plugins.oss)
alias(libs.plugins.root)
alias(libs.plugins.antora) apply false
alias(libs.plugins.codegen) apply false
alias(libs.plugins.docgen) apply false
alias(libs.plugins.app) apply false
alias(libs.plugins.docker) apply false
alias(libs.plugins.jooq) apply false
}
project.ext.set("baseName", (gradle as ExtensionAware).extensions["BASE_NAME"] as String)
project.ext.set(NexusConfig.NEXUS_VERSION_KEY, NexusVersion.AFTER_2021_02_24)
allprojects {
group = project.ext.get("projectGroup") as String
repositories {
mavenLocal()
maven { url = uri("https://maven-central-asia.storage-download.googleapis.com/maven2/") }
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
mavenCentral()
}
val skipPublish = (gradle as ExtensionAware).extensions["SKIP_PUBLISH"] as Array<*>
sonarqube {
isSkipProject = project.path in skipPublish
}
tasks {
withType<AbstractPublishToMaven> {
enabled = project != rootProject && project.path !in skipPublish
}
}
}
subprojects {
apply(plugin = rootProject.libs.plugins.oss.get().pluginId)
dependencies {
compileOnly(rootProject.libs.lombok)
annotationProcessor(rootProject.libs.lombok)
testCompileOnly(rootProject.libs.lombok)
testAnnotationProcessor(rootProject.libs.lombok)
compileOnly(rootProject.libs.jetbrainsAnnotations)
testCompileOnly(rootProject.libs.jetbrainsAnnotations)
testImplementation(rootProject.libs.bundles.junit5)
testImplementation(rootProject.libs.junitPioneer)
testImplementation(rootProject.libs.jsonAssert)
}
oss {
playio.set(true)
github.set(true)
testLogger {
slowThreshold = 5000
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(JavaVersion.current().majorVersion))
}
}
}
tasks.register("generateJooq") {
group = "jooq"
dependsOn(subprojects.map { it.tasks.withType<nu.studer.gradle.jooq.JooqGenerate>() })
}