-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (42 loc) · 1.04 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
buildscript {
repositories {
mavenCentral()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
}
}
plugins {
id "com.diffplug.spotless" version "6.0.2"
id "com.github.johnrengelman.shadow" version "7.1.1"
}
group = 'cat.nyaa'
version = '1.1-SNAPSHOT'
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
group = project.group
version = project.version
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
spotless {
format 'misc', {
target '*.gradle', '*.md', '.gitignore'
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
java {
target '*/src/*/java/**/*.java'
removeUnusedImports()
prettier(['prettier': '2.5.1', 'prettier-plugin-java': '1.6.0', 'java-parser': '2.0.0']).config(['parser': 'java', 'tabWidth': 4, 'printWidth': 120])
}
}