-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
105 lines (93 loc) · 3.59 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
dependencies {
classpath("com.google.cloud.tools:jib-spring-boot-extension-gradle:0.1.0")
}
}
plugins {
id("org.springframework.boot") version "2.5.4"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("org.jetbrains.kotlin.kapt") version "1.5.30"
id("com.google.cloud.tools.jib") version "3.1.4"
id("com.diffplug.spotless") version "5.14.2"
kotlin("jvm") version "1.5.20"
kotlin("plugin.spring") version "1.5.20"
}
group = "org.codefreak.cloud"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
maven(url = "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
maven(url = "https://repo.spring.io/snapshot") // for graphql-spring-boot-starter until it's in stable
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.experimental:graphql-spring-boot-starter:1.0.0-SNAPSHOT")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation("commons-io:commons-io:2.11.0")
implementation("org.apache.commons:commons-compress:1.21")
implementation("org.apache.tika:tika-core:1.27")
// https://packages.jetbrains.team/maven/p/ij/intellij-dependencies/org/jetbrains/pty4j/pty4j/
implementation("org.jetbrains.pty4j:pty4j:0.11.5")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
// we are using Hamcrest matchers and assertj's "assertThat" is annoying in autocompletion
exclude(group = "org.assertj", module = "assertj-core")
}
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin")
testImplementation("org.springframework.graphql:spring-graphql-test:1.0.0-SNAPSHOT")
testImplementation("junit:junit:4.13.2")
testImplementation("io.projectreactor:reactor-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events = setOf(TestLogEvent.FAILED)
exceptionFormat = TestExceptionFormat.FULL
}
}
jib {
from {
//image = "replco/polygott:c82c08a720ba1fd537d4fba17eed883ab87c0fd7"
}
to {
image = "ghcr.io/codefreak/codefreak-cloud-companion"
}
container {
volumes = listOf(
"/code"
)
labels.put("org.opencontainers.image.source", "https://github.com/codefreak/codefreak-cloud-companion")
}
pluginExtensions {
pluginExtension {
implementation = "com.google.cloud.tools.jib.gradle.extension.springboot.JibSpringBootExtension"
}
}
}
spotless {
kotlin {
ktlint()
}
}