forked from BraeWebb/chalkbox
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (88 loc) · 2.65 KB
/
Copy pathbuild.gradle
File metadata and controls
101 lines (88 loc) · 2.65 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
101
plugins {
id("java")
id("application")
id("org.sonarqube") version "6.3.1.5724"
id("com.github.ben-manes.versions") version "0.53.0"
id("com.diffplug.spotless") version "8.0.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDirs "src/resources"
}
}
test {
java {
srcDir 'test/java'
}
resources {
srcDirs "test/resources"
exclude "**/*.java"
}
}
}
sourceSets.test.resources
dependencies {
implementation group: 'junit', name: 'junit', version: '4.13.1'
implementation 'com.github.therapi:therapi-runtime-javadoc:0.15.0'
implementation 'com.github.therapi:therapi-runtime-javadoc-scribe:0.15.0'
implementation 'info.picocli:picocli:4.7.7'
implementation 'org.reflections:reflections:0.9.12'
implementation 'com.google.code.gson:gson:2.13.2'
implementation 'com.github.gestalt-config:gestalt-core:0.36.0'
implementation 'com.github.gestalt-config:gestalt-yaml:0.36.0'
implementation 'com.google.flogger:flogger:0.9'
implementation 'com.google.flogger:flogger-system-backend:0.9'
implementation 'org.pitest:pitest:1.20.6'
implementation 'org.pitest:pitest-entry:1.20.6'
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
}
application {
mainClass = 'chalkbox.ChalkBox'
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.implementation
}
jar {
manifest {
attributes 'Main-Class': application.mainClass
}
archiveBaseName = project.name
}
tasks.register('fatJar', Jar) {
manifest {
attributes 'Main-Class': application.mainClass
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
archiveBaseName = project.name + '-all'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '.gitattributes', '.gitignore'
// Steps
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
java {
removeUnusedImports()
prettier(['prettier': '3.0.3', 'prettier-plugin-java': '2.3.0'])
.nodeExecutable("/home/millie/.nvm/versions/node/v25.1.0/bin/node")
.config(['parser': 'java', 'tabWidth': 4, 'plugins': ['prettier-plugin-java']])
}
}