-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
82 lines (70 loc) · 2.1 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
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.KtlintExtension
val javaVersion = JavaVersion.VERSION_11
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.gradle.publish)
`java-gradle-plugin`
alias(libs.plugins.detekt)
alias(libs.plugins.ktlint)
}
group = "eu.vendeli"
version = providers.gradleProperty("pluginVersion").getOrElse("dev")
gradlePlugin {
website.set("https://vendeli.eu")
vcsUrl.set("https://github.com/vendelieu/jooq-extension")
plugins {
create("jooq-extension") {
id = "eu.vendeli.jooq.extension"
displayName = "Jooq Extension Gradle Plugin"
description = "Gradle plugin that extends functionality of the JOOQ."
@Suppress("UnstableApiUsage")
tags.set(listOf("kotlin", "spring-boot", "jooq"))
implementationClass = "eu.vendeli.jooq.JooqExtensionPlugin"
}
}
}
configurations.compileClasspath {
// Allow Java 11 dependencies on compiler classpath
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 11)
}
dependencies {
implementation(libs.jooq.codegen)
}
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
tasks {
withType<Wrapper> {
distributionType = Wrapper.DistributionType.ALL
}
withType<Detekt> {
config = rootProject.files("config/detekt.yml")
}
configure<KtlintExtension> {
debug.set(false)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
ignoreFailures.set(false)
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget.set(JvmTarget.fromTarget(javaVersion.majorVersion))
}
}
}