-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
48 lines (40 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode
plugins {
`kotlin-dsl`
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish")
}
version = "0.5.1"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
kotlin {
jvmToolchain(17)
}
project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
javaParameters = true
}
jvmTargetValidationMode.set(JvmTargetValidationMode.WARNING)
}
gradlePlugin {
plugins {
create("tailrocksJavaPlugin") {
id = "com.tailrocks.java"
implementationClass = "com.tailrocks.gradle.JavaPlugin"
displayName = "Tailrocks Java conventions"
description = "Common Gradle Java plugin conventions used by tailrocks projects."
version = project.version as String
tags = listOf("conventions", "java")
}
}
}
gradlePlugin {
website = "https://github.com/tailrocks/tailrocks-gradle-conventions"
vcsUrl = "https://github.com/tailrocks/tailrocks-gradle-conventions.git"
}