forked from Apress/java-for-absolute-beginners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·84 lines (71 loc) · 2.79 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
81
82
83
84
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
version = '1.1-SNAPSHOT'
}
java.sourceCompatibility = JavaVersion.VERSION_14
ext {
junit5Version = '5.3.2'
mockitoVersion = '2.21.0'
tomcatVersion = '9.0.0.M6'
log4jVersion = '2.11.0'
slf4jVersion = '1.8.0-beta2'
logbackVersion = '1.3.0-alpha4'
jaxbVersion = '2.4.0-b180725.0427'
osType = 'macos'
if (org.gradle.internal.os.OperatingSystem.current().isLinux()) {
osType = 'linux'
} else if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
osType = 'macos'
} else {
osType = 'windows'
}
testing = [
api : "org.junit.jupiter:junit-jupiter-api:$junit5Version",
engine : "org.junit.jupiter:junit-jupiter-engine:$junit5Version",
mockito : "org.mockito:mockito-junit-jupiter:$mockitoVersion",
tck : "org.reactivestreams:reactive-streams-tck-flow:1.0.2"
]
misc = [
json : "com.google.code.gson:gson:2.8.5",
slf4j : "org.slf4j:slf4j-api:$slf4jVersion",
log4j : "org.apache.logging.log4j:log4j-core:$log4jVersion",
logback : "ch.qos.logback:logback-classic:$logbackVersion",
mysql : "mysql:mysql-connector-java:8.0.11",
jsefa : "net.sf.jsefa:jsefa:1.1.1.RELEASE",
derby : "org.apache.derby:derby:10.14.2.0",
jaxb : "javax.xml.bind:jaxb-api:$jaxbVersion",
jaxbCore: "com.sun.xml.bind:jaxb-core:2.3.0.1",
json : "org.json:json:20180130",
sanselan: "org.apache.sanselan:sanselan:0.97-incubator",
//seaglasslookandfeel : "com.seaglasslookandfeel:seaglasslookandfeel:0.1.6.1"
]
tomcat = [
embedCore : "org.apache.tomcat.embed:tomcat-embed-core:$tomcatVersion",
embedJasper: "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVersion",
embedLog4j : "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatVersion",
jstl : "jstl:jstl:1.2",
taglibs : "taglibs:standard:1.1.2"
]
reactive = [
reactive_streams: "org.reactivestreams:reactive-streams:1.0.2",
akka : "com.typesafe.akka:akka-stream_2.12:2.5.16",
mongo_streams : "org.mongodb:mongodb-driver-reactivestreams:1.9.1",
ratpack : "io.ratpack:ratpack-core:1.5.4",
reactor : "io.projectreactor:reactor-core:3.1.9.RELEASE",
rxJava : "io.reactivex.rxjava2:rxjava:2.2.2"
]
}
subprojects {
version '1.1-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
}