forked from OASIS-learn-study/minecraft-storeys-maker
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (67 loc) · 2.14 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
71
72
73
74
75
76
77
78
79
80
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:4.3.1'
}
}
plugins {
id 'java-library'
id 'com.github.hierynomus.license' version '0.14.0'
// id 'net.ltgt.errorprone' version '0.0.13'
}
repositories {
// mavenLocal()
jcenter()
}
allprojects {
group = 'ch.vorburger.minecraft.storeys'
version = '1.0.0-SNAPSHOT'
description = 'Make your own stories in, with and for Minecraft!'
apply plugin: 'java-library'
apply plugin: 'com.github.hierynomus.license'
// apply plugin: 'net.ltgt.errorprone'
license {
header rootProject.file('LICENSE-HEADER')
strictCheck true
exclude '**/*.json'
mapping {
java='SLASHSTAR_STYLE'
}
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
// TODO apply same error-prone configuration as I've done in OpenDaylight's infrautils.parent
// options.compilerArgs += [ '-Xlint:deprecation', '-Xep:FallThrough:ERROR', '-Xep:MutableConstantField:ERROR', '-Xep:DefaultCharset:ERROR' ]
}
}
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'biz.aQute.bnd.builder'
repositories {
mavenLocal() // for ch.vorburger.minecraft.osgi.api
jcenter()
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
// errorprone 'com.google.errorprone:error_prone_core:2.3.1'
// implementation 'com.google.errorprone:error_prone_annotations:2.3.1'
implementation 'org.spongepowered:spongeapi:7.3.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest-library:2.2'
testImplementation 'org.slf4j:slf4j-simple:1.7.30'
testImplementation 'org.mockito:mockito-core:3.8.0'
}
test {
testLogging {
// more verbose, but sometimes useful; see e.g. https://github.com/vorburger/minecraft-storeys-maker/pull/16
events "failed", "passed", "skipped"
exceptionFormat "full"
}
}
}