-
-
Notifications
You must be signed in to change notification settings - Fork 366
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (86 loc) · 2.33 KB
/
Copy pathbuild.gradle
File metadata and controls
103 lines (86 loc) · 2.33 KB
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
/*
* Copyright (c) 2020. Tolgee
*/
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'io.spring.dependency-management'
id 'org.jetbrains.kotlin.jvm'
id 'org.springframework.boot' apply false
id "kotlin-allopen"
id "io.sentry.jvm.gradle"
}
group = 'io.tolgee'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "org.jetbrains.kotlin.plugin.spring"
apply plugin: "kotlin-allopen"
apply plugin: 'io.spring.dependency-management'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
allOpen {
annotation("org.springframework.stereotype.Component")
annotation("org.springframework.boot.test.context.SpringBootTest")
}
dependencies {
implementation libs.kotlinCoroutines
implementation "org.springframework.boot:spring-boot-starter-hateoas"
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation("org.springframework.boot:spring-boot-starter-security")
implementation "org.springframework.boot:spring-boot-starter-websocket"
implementation(project(':data'))
implementation(project(':misc'))
implementation(project(':security'))
/**
* SPRING DOC
*/
implementation libs.springDocWebmvcApi
implementation libs.springDocOpenApiUi
implementation libs.redissonSpringBootStarter
/**
* Misc
*/
implementation libs.commonsCodec
implementation libs.jjwtApi
implementation libs.jjwtImpl
implementation libs.jjwtJackson
implementation("com.github.ben-manes.caffeine:caffeine:3.0.5")
implementation libs.kotlinReflect
implementation libs.jacksonModuleKotlin
api libs.postHog
/**
* SLACK SDK
*/
api libs.slackApiClient
/**
* TESTING
*/
ktlint(project(":ktlint"))
}
sourceSets {
main.kotlin.srcDirs = ['src/main/kotlin', 'src/main/java']
test.kotlin.srcDirs = ['src/test/kotlin', 'src/test/java']
}
dependencyManagement {
applyMavenExclusions = false
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES) {
bomProperty "kotlin.version", "${kotlinVersion}"
}
}
}
tasks.named('jar', Jar) {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}