-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
70 lines (60 loc) · 2.09 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
plugins {
// release
id("com.bakdata.release") version "1.3.0"
id("com.bakdata.sonar") version "1.1.17"
id("com.bakdata.sonatype") version "1.3.2"
id("org.gradle.kotlin.kotlin-dsl") version "4.1.2" apply false
id("com.gradle.plugin-publish") version "1.2.1" apply false
}
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("Philipp Schirmer")
id.set("philipp94831")
}
}
}
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-avro-dependency-plugin")
vcsUrl.set("https://github.com/bakdata/gradle-avro-dependency-plugin")
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")
}
}