-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
85 lines (74 loc) · 2.43 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
80
81
82
83
84
85
plugins {
// release
id("com.bakdata.release") version "1.4.0"
// eat your own dog food - apply the plugins to this plugin project
id("com.bakdata.sonar") version "1.4.0"
id("com.bakdata.sonatype") version "1.4.0"
id("org.gradle.kotlin.kotlin-dsl") version "4.1.2" apply false
id("com.gradle.plugin-publish") version "1.2.1" apply false
}
buildscript {
configurations.all {
exclude(group = "au.com.console", module = "kassava")
}
}
allprojects {
repositories {
maven(url = "https://plugins.gradle.org/m2/")
}
group = "com.bakdata.gradle"
tasks.withType<Test> {
maxParallelForks = 4
}
}
configure<com.bakdata.gradle.SonatypeSettings> {
developers {
developer {
name.set("Arvid Heise")
id.set("AHeise")
}
developer {
name.set("Philipp Schirmer")
id.set("philipp94831")
}
developer {
name.set("Torben Meyer")
id.set("torbsto")
}
}
}
subprojects {
apply(plugin = "java")
configure<JavaPluginExtension> {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
apply(plugin = "java-gradle-plugin")
// config for gradle plugin portal doesn't support snapshot, so we add config only if release version
if (!version.toString().endsWith("-SNAPSHOT")) {
apply(plugin = "com.gradle.plugin-publish")
}
// description is only ready after evaluation
afterEvaluate {
configure<GradlePluginDevelopmentExtension> {
website.set("https://github.com/bakdata/gradle-plugins")
vcsUrl.set("https://github.com/bakdata/gradle-plugins")
plugins {
create("${project.name.capitalize()}Plugin") {
id = "com.bakdata.${project.name}"
implementationClass = "com.bakdata.gradle.${project.name.capitalize()}Plugin"
description = project.description
displayName = "Bakdata $name plugin"
tags = listOf("bakdata", name)
}
}
}
}
dependencies {
val junitVersion = "5.10.2"
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
"testImplementation"("org.junit.jupiter:junit-jupiter-api:$junitVersion")
"testImplementation"("org.assertj", "assertj-core", "3.25.3")
}
}