-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
46 lines (41 loc) · 1.26 KB
/
build.gradle.kts
File metadata and controls
46 lines (41 loc) · 1.26 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
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
mavenCentral()
google()
}
dependencies {
classpath(libs.android.gradle.plugin)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.dokka.gradle.plugin)
classpath(libs.jacoco.core)
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
maven { url = uri("https://jitpack.io") }
}
}
// Run unit tests in a JDK 11 JVM. Gradle 8.5 requires JDK 17+ to run, but
// PowerMock/Robolectric can't handle JDK 17 class files. The toolchain launcher
// forks test execution into a separate JDK 11 process.
subprojects {
tasks.withType<Test>().configureEach {
javaLauncher.set(
project.extensions.getByType<JavaToolchainService>().launcherFor {
languageVersion.set(JavaLanguageVersion.of(11))
}
)
}
}