-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (63 loc) · 1.8 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'application'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id "io.spring.dependency-management" version "1.0.0.RELEASE"
}
allprojects {
group 'com.yunikov'
version = "$version"
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "io.spring.dependency-management"
ext {
watchForChange = 'src/**/*'
doOnChange = './gradlew classes'
}
task createProperties(dependsOn: processResources/**/) {
}
tasks.createProperties.doLast {
def gradlePropertiesFile = new File("$buildDir/resources/main/gradle.properties")
gradlePropertiesFile.getParentFile().mkdirs()
gradlePropertiesFile.createNewFile()
gradlePropertiesFile.withWriter{ w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
classes {
dependsOn createProperties
}
}
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
compileTestJava {
options.encoding = 'UTF-8'
}
dependencyManagement {
dependencies {
dependency "io.vertx:vertx-core:$vertxVersion"
dependency "io.vertx:vertx-config:$vertxVersion"
dependency "io.vertx:vertx-web:$vertxVersion"
dependency "io.vertx:vertx-unit:$vertxVersion"
dependency "org.slf4j:slf4j-api:1.7.24"
dependency "org.slf4j:slf4j-log4j12:1.7.24"
dependency "junit:junit:4.12"
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}