forked from bisq-network/bisq2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 1.13 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
plugins {
id 'com.google.protobuf' version '0.8.16'
id 'signing'
id 'maven-publish'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
apply from: 'misq-version.gradle'
ext {
createTestReports = false
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
java {
modularity.inferModulePath = false
withJavadocJar()
withSourcesJar()
}
tasks.named('compileJava') {
sourceCompatibility = 16
targetCompatibility = 16
modularity.inferModulePath = false
options.compilerArgs += ['-Xdoclint:none', '-Xlint:none', '-nowarn']
}
jar {
// Exclude .proto files from generated jars.
exclude '*.proto'
includeEmptyDirs false
}
tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
if (!project.hasProperty("createTestReports")) {
reports.html.enabled = false
reports.junitXml.enabled = false
}
}
tasks.named("javadoc") {
source = sourceSets.main.allJava
options.addStringOption('Xdoclint:none', '-quiet')
}
tasks.named("test") {
useJUnitPlatform()
}