-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
48 lines (41 loc) · 1.45 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
base
kotlin("jvm") apply false
kotlin("plugin.serialization") apply false
id("co.uzzu.dotenv.gradle")
id("com.apollographql.apollo3") apply false
}
allprojects {
group = "no.arcane.platform"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
// needed for contentful sdk
maven { url = uri("https://jitpack.io") }
// needed for firestore4k
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") }
}
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_18.toString()
targetCompatibility = JavaVersion.VERSION_18.toString()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_18.majorVersion
}
}
tasks.withType<Test> {
useJUnitPlatform()
environment = env.allVariables
}
}
subprojects {
// Address https://github.com/gradle/gradle/issues/4823: Force parent project evaluation before subproject evaluation for Kotlin build scripts
if (gradle.startParameter.isConfigureOnDemand
&& buildscript.sourceFile?.extension?.toLowerCase() == "kts"
&& parent != rootProject) {
generateSequence(parent) { project -> project.parent.takeIf { it != rootProject } }
.forEach { evaluationDependsOn(it.path) }
}
}