generated from tgrothe/java-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (38 loc) · 943 Bytes
/
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
buildscript {
apply from: 'dependencies.gradle'
}
plugins {
id 'java'
id 'com.diffplug.spotless' version "${spotlessVersion}"
id 'com.github.ben-manes.versions' version "${benmanesVersion}"
id 'com.github.spotbugs' version "${spotbugsVersion}"
}
group = 'org.example'
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
implementation supportedDependencies.lang3
implementation 'org.json:json:20240303'
}
tasks.withType(JavaCompile) {
options.release = 17
}
spotless {
java {
target 'src/**/*.java'
googleJavaFormat()
}
}
jar {
destinationDirectory.set(file("$rootDir/jars"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude('META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA')
}