-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
64 lines (55 loc) · 1.96 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
plugins {
id 'org.springframework.boot' version '2.4.0'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '15'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
bootRun{
// -Pprofiles=prdで起動できるようにする
if (project.properties.containsKey("profiles")){
jvmArgs += '-Dspring.profiles.active='+ project.properties.get("profiles")
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-validation'
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
implementation 'org.flywaydb:flyway-core'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompile "org.mybatis.spring.boot:mybatis-spring-boot-starter-test:2.1.3"
implementation 'org.springframework.boot:spring-boot-starter-actuator'
testCompile 'org.springframework.security:spring-security-test:5.4.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
implementation 'org.springframework.boot:spring-boot-starter-cache'
testImplementation "com.github.tomakehurst:wiremock-jre8:2.27.2"
testImplementation "ru.lanwen.wiremock:wiremock-junit5:1.3.1"
}
test {
useJUnitPlatform()
}
bootJar{
// archiveBaseName = 'base'
// archiveAppendix = 'add'
// archiveVersion = '0.1'
// archiveClassifier = 'gorilla'
// archiveExtension = 'jar'
archiveFileName = 'adventcalender.jar'
}