-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
71 lines (59 loc) · 1.41 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
/*
* Copyright (c) 2021.
*
* This file is part of the "Pathfinder2" project, available here:
* <a href="https://github.com/Wobblyyyy/Pathfinder2">GitHub</a>
*
* This project is licensed under the GNU GPL V3 license.
* <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU GPL V3</a>
*/
plugins {
id 'java'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.3.0'
id 'me.champeau.jmh' version '0.6.6'
}
repositories {
mavenCentral()
}
project.ext {
projectName = 'me.wobblyyyy'
projectVersion = 'v3.0.0-alpha'
jmhTime = '200ms'
jmhWarmupIterations = 5
jmhIterations = 5
jmhWarmupForks = 2
jmhForks = 2
jmhTimeUnit = 's'
}
allprojects {
group = project.projectName
version = project.projectVersion
java {
withJavadocJar()
withSourcesJar()
}
}
spotless {
java {
target fileTree('.') {
include '**/*.java'
exclude '**/build/**', '**/build-*/**'
}
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
prettier([
'prettier': '2.0.5',
'prettier-plugin-java': '0.8.0'
]).configFile('.prettierrc.yml')
}
groovyGradle {
target fileTree('.') {
include '**/*.gradle'
exclude '**/build/**', '**/build-*/**'
}
indentWithSpaces()
trimTrailingWhitespace()
}
}