-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (60 loc) · 2.21 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
plugins{
id 'org.springframework.boot' version '2.5.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.github.ben-manes.versions' version '0.38.0'
id 'java-library'
}
ext{
caffeine_version = '3.0.4'
evalex_version = '2.6'
immutables_version = '2.8.8'
jackson_version = '2.12.5'
d4j_json_version = '1.7.1-SNAPSHOT'
junit_version = '5.8.1'
}
allprojects{
apply plugin: 'java-library'
apply plugin: 'com.github.ben-manes.versions'
targetCompatibility = 16
sourceCompatibility = 16
repositories{
mavenCentral()
mavenLocal()
maven{url 'https://oss.sonatype.org/content/repositories/snapshots'}
maven{url 'https://www.jitpack.io'}
}
dependencies{
implementation "com.discord4j:discord4j:master-SNAPSHOT"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
options.incremental = true
options.compilerArgs += ["-Xlint:deprecation"]
}
tasks.withType(Test){
useJUnitPlatform()
}
configurations.all{
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
dependencies{
if(findProject(':legacy') != null){
api project(':legacy')
}
compileOnly "com.discord4j:discord-json-encoding:$d4j_json_version"
implementation "com.github.ben-manes.caffeine:caffeine:$caffeine_version"
implementation "com.udojava:EvalEx:$evalex_version"
// data dependencies
runtimeOnly "org.postgresql:postgresql"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:$jackson_version"
// spring dependencies
implementation "org.springframework.boot:spring-boot-starter-quartz"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
compileOnly "org.immutables:builder:$immutables_version"
compileOnly "org.immutables:value:$immutables_version"
annotationProcessor "org.immutables:value:$immutables_version"
}