-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
102 lines (79 loc) · 2.46 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
//val fuel_version by extra { "1.12.1" }
plugins {
base
kotlin("jvm") version "1.2.30" apply false
id("org.jlleitschuh.gradle.ktlint") version "3.1.0"
id ("io.spring.dependency-management") version "1.0.4.RELEASE"
id ("com.github.ben-manes.versions") version "0.17.0"
`project-report`
`jacoco`
}
//jacoco {
//
//}
ktlint {
version = "0.19.0"
verbose = true
outputToConsole = true
}
allprojects {
group = "com.stalex.ad-scrapper"
version = "1.0"
repositories {
jcenter()
maven("https://jitpack.io")
maven("http://dl.bintray.com/kotlin/ktor")
maven("https://dl.bintray.com/kotlin/kotlinx")
maven("https://plugins.gradle.org/m2/")
}
}
buildscript {
repositories {
maven("https://repo.spring.io/plugins-snapshot")
}
dependencies {
classpath("io.spring.gradle:dependency-management-plugin:1.0.5.BUILD-SNAPSHOT")
}
}
subprojects {
tasks.withType<KotlinCompile> {
println("Configuring $name in project ${project.name}...")
kotlinOptions {
suppressWarnings = true
jvmTarget = "1.8"
}
}
plugins {
id ("io.spring.dependency-management") apply true
}
val extensions = this.extensions
print("ext: $extensions")
afterEvaluate {
this.dependencyManagement {
val fuel_version = "1.12.1"
val mockk_version = "1.7.10"
val slf4j_version = "1.7.25"
val kotlintest_version = "2.0.7"
val coroutines_version = "0.22.5"
val kotlin_logging = "1.5.3"
//
dependencies {
dependency("io.kotlintest:kotlintest:$kotlintest_version")
dependency("io.mockk:mockk:$mockk_version")
dependency("org.slf4j:slf4j-jdk14:$slf4j_version")
dependency("io.github.microutils:kotlin-logging:$kotlin_logging")
dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
dependency("com.github.salomonbrys.kodein:kodein:4.1.0")
dependency("com.github.kittinunf.fuel:fuel:$fuel_version")
dependency("com.github.kittinunf.fuel:fuel-gson:$fuel_version")
}
}
}
}
dependencies {
// Make the root project archives configuration depend on every subproject
subprojects.forEach {
archives(it)
}
}