-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
81 lines (63 loc) · 2.26 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ossIndexUsername = System.getenv("OSS_INDEX_USERNAME")
val ossIndexPassword = System.getenv("OSS_INDEX_PASSWORD")
plugins {
id("org.springframework.boot") version "2.6.13"
id("io.spring.dependency-management") version "1.1.0"
id("org.owasp.dependencycheck") version "7.3.0"
kotlin("jvm") version "1.6.10"
kotlin("plugin.spring") version "1.6.10"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
// Kotlin
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-reflect")
// Web
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// Database
runtimeOnly("mysql:mysql-connector-java")
implementation("org.springframework.boot:spring-boot-starter-jooq")
implementation("org.flywaydb:flyway-core:7.15.0")
// Document
implementation("io.springfox:springfox-swagger2:2.9.2")
implementation("io.springfox:springfox-swagger-ui:2.9.2")
// Development
developmentOnly("org.springframework.boot:spring-boot-devtools")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
// 脆弱性対策
implementation("org.yaml:snakeyaml:1.33")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
dependencyCheck {
failBuildOnCVSS = 7.0F
suppressionFile = "etc/java/owasp-suppressions.xml"
// settings to ignore .NET dependency check
//
// see
// https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html
// https://qiita.com/wrongwrong/items/ef93471c6c22c2202f19
analyzers.nuspecEnabled = false
analyzers.nugetconfEnabled = false
analyzers.assemblyEnabled = false
analyzers.ossIndex.username = ossIndexUsername
analyzers.ossIndex.password = ossIndexPassword
}
apply(from = "etc/java/jooq-flyway.gradle")