forked from simhaonline/gobtx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (59 loc) · 1.63 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 {
mavenLocal()
mavenCentral()
jcenter()
}
}
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
//suppose log4j2
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
all*.exclude group: 'org.springframework.boot',module:'spring-boot-starter-logging'
all*.exclude module : 'spring-boot-starter-logging'
}
compileJava {
options.compilerArgs << '-parameters'
options.fork = true
options.forkOptions.executable = 'javac'
}
dependencies {
}
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options"
}
group 'com.gobtx'
version "$releaseVersion"
/*configurations.all {
// check for updates every build
//resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 10*60, 'seconds'
}*/
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
subprojects {
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
//resolutionStrategy.cacheDynamicVersionsFor 10*60, 'seconds'
}
}
if (!JavaVersion.current().java8Compatible)
throw new GradleException("CM system requires Java 8+, please upgrade to at least 1.8.0_112")
idea {
module {
downloadJavadoc = true // defaults to false
downloadSources = true
}
}