-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (72 loc) · 2.2 KB
/
build.gradle
File metadata and controls
83 lines (72 loc) · 2.2 KB
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
plugins {
id 'java-gradle-plugin'
id "com.gradle.plugin-publish" version "2.1.0"
id 'com.diffplug.spotless' version '8.3.0'
id 'org.owasp.dependencycheck' version '12.2.0'
id "com.github.ben-manes.versions" version "0.53.0"
}
group 'com.formkiq.gradle'
version '1.0.9'
allprojects {
apply plugin: 'com.diffplug.spotless'
}
repositories {
mavenLocal()
gradlePluginPortal()
}
dependencies {
implementation 'com.github.spotbugs:com.github.spotbugs.gradle.plugin:6.4.8'
implementation 'com.diffplug.spotless:com.diffplug.spotless.gradle.plugin:8.3.0'
implementation 'com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin:0.53.0'
implementation 'com.formkiq.gradle.graalvm-native-plugin:com.formkiq.gradle.graalvm-native-plugin.gradle.plugin:1.7.7'
implementation 'org.owasp.dependencycheck:org.owasp.dependencycheck.gradle.plugin:12.2.0'
// can use for local graalvm.native-plugin use
// implementation "com.formkiq.gradle:graalvm-native-plugin:1.7.7"
testImplementation platform("org.spockframework:spock-bom:2.4-groovy-5.0")
testImplementation 'org.spockframework:spock-core'
}
tasks.named('test', Test) {
useJUnitPlatform()
}
spotless {
spotless {
java {
eclipse().sortMembersEnabled(true).configFile rootProject.file("spotless.eclipseformat.xml")
}
}
groovyGradle {
target '**/*.gradle'
greclipse()
leadingTabsToSpaces(2)
trimTrailingWhitespace()
endWithNewline()
}
}
spotlessCheck.dependsOn spotlessApply
gradlePlugin {
website = 'https://github.com/formkiq/java-base-plugin'
vcsUrl = 'https://github.com/formkiq/java-base-plugin'
plugins {
javaBase {
id = "com.formkiq.gradle.java-base"
displayName = "FormKiQ Java Base Conventions"
description = "Applies Java 17 toolchain, Spotless, SpotBugs, Checkstyle, Versions plugin, and standard repos."
implementationClass = "com.formkiq.gradle.JavaBasePlugin"
tags = [
"java",
"conventions",
"spotless",
"spotbugs",
"checkstyle"
]
}
}
}
publishing {
publications {
pluginMaven(MavenPublication) {
}
}
}
spotlessJavaCheck.dependsOn 'spotlessJavaApply'
check.dependsOn(tasks.publishToMavenLocal)