-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (65 loc) · 1.48 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
group = 'com.github.zjiajun'
version = 1.0
buildscript {
repositories {
mavenLocal()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public"
}
mavenCentral()
}
apply from: "$rootDir/gradle/dependencies.gradle"
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:$versions.spotlessPlugin"
}
}
apply plugin: "com.diffplug.gradle.spotless"
spotless {
scala {
target '**/*.scala'
scalafmt("$versions.scalafmt").configFile('checkstyle/.scalafmt.conf')
}
}
tasks.named('wrapper') {
gradleVersion = '6.5'
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
repositories {
mavenLocal()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public"
}
}
apply plugin: 'idea'
}
subprojects {
apply plugin: 'java'
apply plugin: 'scala'
tasks.withType(ScalaCompile) {
scalaCompileOptions.forkOptions.with {
memoryMaximumSize = '1g'
jvmArgs = ['-Xss2m','-XX:+HeapDumpOnOutOfMemoryError','-XX:HeapDumpPath=/tmp/heapdump.hprof']
}
}
dependencies {
implementation libs.scalaLibrary
implementation libs.scalaReflect
implementation libs.scalaLogging
implementation libs.slf4jApi
implementation libs.log4j2
implementation libs.slf4jlog4j2
testImplementation libs.scalatest
}
}
project(':core') {
archivesBaseName = "core"
}
project(':scalike') {
dependencies {
implementation libs.mysql
implementation libs.scalikejdbc
implementation libs.scalikejdbcConfig
implementation libs.hikariCP
}
}