forked from cleanarchitecturebe/spring-boot-kotlin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.52 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id "io.spring.dependency-management" version "1.0.10.RELEASE"
}
allprojects {
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: "kotlin-kapt"
repositories {
jcenter()
}
}
subprojects {
apply plugin: "io.spring.dependency-management"
repositories {
jcenter()
maven {
url "https://repo.spring.io/milestone/"
}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.3.3.RELEASE'
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
def arrow_version = "0.10.4"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.72"
compile "io.arrow-kt:arrow-core:$arrow_version"
compile "io.arrow-kt:arrow-syntax:$arrow_version"
kapt "io.arrow-kt:arrow-meta:$arrow_version"
}
}
task copyAppDependencies(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.jar)
into 'build/dependencies/app'
}
task copyThirdPartyDependencies(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.configurations.runtimeClasspath)
exclude(subprojects.jar*.archiveName)
into 'build/dependencies/third-party'
}
build.dependsOn copyAppDependencies
build.dependsOn copyThirdPartyDependencies