-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (85 loc) · 2.8 KB
/
build.gradle
File metadata and controls
100 lines (85 loc) · 2.8 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id 'java'
id 'checkstyle'
id 'com.vanniktech.maven.publish' version '0.32.0'
id 'com.diffplug.spotless' version '7.0.4'
id 'com.github.spotbugs' version '6.1.13'
id 'com.github.ben-manes.versions' version '0.52.0'
}
group 'com.formkiq'
version '1.5.2'
dependencies {
annotationProcessor group: 'com.google.auto.service', name: 'auto-service', version: '1.1.1'
compileOnly group: 'com.google.auto.service', name: 'auto-service', version: '1.1.1'
compileOnly group: 'com.google.auto.service', name: 'auto-service-annotations', version: '1.1.1'
implementation group: 'com.formkiq', name: 'graalvm-annotations', version: '1.2.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.13.1'
testImplementation group: 'junit', name: 'junit', version:'4.+'
testImplementation group: 'com.google.testing.compile', name: 'compile-testing', version: '0.21.0'
}
compileJava {
options.annotationProcessorPath = configurations.annotationProcessor
}
spotless {
java {
eclipse().configFile project.rootProject.file("spotless.eclipseformat.xml")
licenseHeaderFile project.rootProject.file("LICENSE_SHORT")
}
}
spotbugs {
excludeFilter = file("$rootDir/config/gradle/spotbugs-exclude.xml")
}
spotbugsMain {
reports {
html {
required.set(true)
}
}
}
checkstyle {
toolVersion = '10.12.1'
configFile file("config/checkstyle/checkstyle.xml")
configProperties = [project_loc: "${projectDir}"]
maxWarnings = 0
maxErrors = 0
}
repositories {
mavenLocal()
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
pom {
name = "FormKiQ Lambda Runtime Graalvm Annotations"
description = "Lambda Runtime Graalvm Annotations"
inceptionYear = "2020"
url = "https://github.com/formkiq/graalvm-annotations-processor"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'mfriesen'
name = 'Mike Friesen'
}
}
scm {
url = 'https://github.com/formkiq/graalvm-annotations-processor.git'
connection = 'scm:git:git://github.com/formkiq/graalvm-annotations-processor.git'
developerConnection = 'scm:git:ssh://github.com/formkiq/graalvm-annotations-processor.git'
}
}
}
compileJava.dependsOn(tasks.spotlessApply)
check.dependsOn(tasks.publishToMavenLocal)