forked from mrkirby153/giveaways
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (88 loc) · 3.33 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
id 'org.springframework.boot' version '2.2.0.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
id "org.flywaydb.flyway" version "6.0.6"
id "io.freefair.lombok" version "5.0.1"
}
group = 'com.mrkirby153'
version = '1.3.0-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url = "https://repo.mrkirby153.com/repository/maven-public/"
}
maven {
url = 'https://m2.dv8tion.net/releases'
}
maven {
url = 'https://jitpack.io'
}
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-amqp'
implementation 'org.springframework.data:spring-data-redis'
implementation 'redis.clients:jedis:3.3.0'
implementation 'org.springframework:spring-websocket'
implementation 'org.springframework:spring-messaging'
implementation 'org.flywaydb:flyway-core'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation 'net.dv8tion:JDA:4.3.0_283'
implementation 'com.mrkirby153:bot-core:3.1-SNAPSHOT'
implementation 'me.mrkirby153:KirbyUtils-Common:3.3'
implementation 'com.google.guava:guava:29.0-jre'
implementation 'org.json:json:20190722'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'io.micrometer:micrometer-registry-prometheus'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
testCompile 'org.mockito:mockito-core:3.1.0'
testCompile 'org.awaitility:awaitility:4.0.1'
}
test {
useJUnitPlatform()
}
// Load up application properties so flyway works
ext.defaultProps = new Properties()
file("src/main/resources/application.properties").withInputStream { defaultProps.load(it) }
ext.props = new Properties()
file("config/application.properties").withInputStream { props.load(it) }
def getApplicationProperty(property, defaultValue = null) {
return props.getProperty(property, defaultProps.getProperty(property, defaultValue))
}
flyway {
url = getApplicationProperty('spring.datasource.url')
user = getApplicationProperty('spring.datasource.username')
password = getApplicationProperty('spring.datasource.password')
}
task cleanAll {
dependsOn clean, flywayClean, ':web:clean'
}
bootJar {
from('web/build') {
into 'static'
}
}
bootJar.dependsOn(':web:assemble')