forked from infiniticio/infinitic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (71 loc) · 2.62 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
/**
* "Commons Clause" License Condition v1.0
*
* The Software is provided to you by the Licensor under the License, as defined below, subject to
* the following condition.
*
* Without limiting other conditions in the License, the grant of rights under the License will not
* include, and the License does not grant to you, the right to Sell the Software.
*
* For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you
* under the License to provide to third parties, for a fee or other consideration (including
* without limitation fees for hosting or consulting/ support services related to the Software), a
* product or service whose value derives, entirely or substantially, from the functionality of the
* Software. Any license notice or attribution required by the License must also include this
* Commons Clause License Condition notice.
*
* Software: Infinitic
*
* License: MIT License (https://opensource.org/licenses/MIT)
*
* Licensor: infinitic.io
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
gradlePluginPortal()
maven(url = "https://dl.bintray.com/gradle/gradle-plugins")
}
}
plugins {
id(Plugins.Kotlin.id) version Plugins.Kotlin.version
id(Plugins.Serialization.id) version Plugins.Serialization.version apply false
id(Plugins.Ktfmt.id) version Plugins.Ktfmt.version apply true
id(Plugins.TestLogger.id) version Plugins.TestLogger.version apply true
}
repositories { mavenCentral() }
subprojects {
apply(plugin = Plugins.Kotlin.id)
apply(plugin = Plugins.Serialization.id)
apply(plugin = Plugins.Ktfmt.id)
apply(plugin = Plugins.TestLogger.id)
group = Libs.org
version = Ci.version
repositories { mavenCentral() }
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation(Libs.Logging.api)
testImplementation(Libs.Slf4j.simple)
testImplementation(Libs.Kotest.junit5)
testImplementation(Libs.Kotest.property)
testImplementation(Libs.Mockk.mockk)
if (name != "infinitic-common") {
testImplementation(testFixtures(project(":infinitic-common")))
}
}
tasks.withType<Test> {
useJUnitPlatform()
testlogger { showFullStackTraces = true }
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
// Keep this to tell compatibility to applications
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}
}