-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (91 loc) · 2.23 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
// Google App Engine plugin設定
/*
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.cloud.tools:appengine-gradle-plugin:2.2.0'
}
}
*/
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
}
repositories {
mavenCentral()
}
// Google App Engine plugin設定
// apply plugin: 'com.google.cloud.tools.appengine'
group = 'net.uoneweb'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.io-informatics.oss:jackson-jsonld:0.1.1'
/*
implementation 'com.google.appengine:appengine-api-1.0-sdk:+' // Google App Engine plugin設定
// https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-gcp-starter-data-datastore
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-data-datastore:1.2.8.RELEASE'
*/
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation("org.assertj:assertj-core:3.21.0")
}
test {
useJUnitPlatform {
excludeTags 'smoke-test'
}
finalizedBy(jacocoTestReport)
}
jacocoTestReport {
reports {
xml.enabled(true)
csv.enabled(false)
html.enabled(true)
}
dependsOn(test)
}
// Google App Engine plugin設定
/*
appengine {
deploy {
projectId = 'tokyotrainnow'
version = 'GCLOUD_CONFIG'
}
}
*/
sourceSets {
smokeTest {
java {
srcDir 'src/smoke-test/java'
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
resources {
srcDir 'src/smoke-test/resources'
}
}
}
configurations {
smokeTestImplementation.extendsFrom testImplementation
smokeTestCompile.extendsFrom testCompile
smokeTestRuntimeOnly.extendsFrom testRuntimeOnly
}
task smokeTest(group: 'verification', type: Test) {
useJUnitPlatform{
includeTags 'smoke-test'
}
classpath = sourceSets.smokeTest.runtimeClasspath
testClassesDirs = sourceSets.smokeTest.output.classesDirs
}