-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
89 lines (77 loc) · 2.42 KB
/
build.gradle
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
86
87
88
89
plugins {
id "java"
id "java-gradle-plugin"
id "checkstyle"
id "com.gradle.plugin-publish" version "1.2.1"
}
repositories {
mavenCentral()
}
// This Gradle plugin is published under the group "gradle.plugin.org.embulk".
// We have an option to avoid the "gradle.plugin" prefix, but we don't do it as it bothers the Gradle team.
// They want Gradle plugins to be published under the "gradle.plugin" prefix for some security reasons.
// https://plugins.gradle.org/docs/publish-plugin
group = "org.embulk"
version = "0.7.0-SNAPSHOT"
description = "A Gradle plugin to build and publish Embulk plugins"
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.encoding = "UTF-8"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
dependencies {
implementation gradleApi()
testImplementation gradleTestKit()
testImplementation platform(libs.junit5.bom)
testImplementation libs.bundles.junit5.implementation
testRuntimeOnly libs.bundles.junit5.runtime
}
jar {
metaInf {
from rootProject.file("LICENSE")
}
}
gradlePlugin {
website = "https://www.embulk.org/"
vcsUrl = "https://github.com/embulk/gradle-embulk-plugins"
plugins {
embulkPluginsPlugin {
id = "org.embulk.embulk-plugins"
displayName = "A Gradle plugin for Embulk plugins"
description = "${project.description}"
implementationClass = "org.embulk.gradle.embulk_plugins.EmbulkPluginsPlugin"
tags.set(["embulk"])
}
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showCauses = true
showExceptions = true
showStackTraces = true
showStandardStreams = true
outputs.upToDateWhen { false }
}
}
tasks.withType(Checkstyle) {
reports {
// Not to skip up-to-date checkstyles.
outputs.upToDateWhen { false }
}
}
checkstyle {
toolVersion "9.3"
configFile = file("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
configProperties = [
"org.checkstyle.google.suppressionfilter.config": file("${rootProject.projectDir}/config/checkstyle/checkstyle-suppressions.xml"),
]
ignoreFailures = false
maxWarnings = 0
}