blob: 85cd3930dc2656f866830aed74176abff4e2074e [file] [log] [blame]
Morten Krogh-Jespersen81c34082023-06-22 15:37:41 +02001// Copyright (c) 2023, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5import org.gradle.api.JavaVersion
6import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7
8plugins {
9 `kotlin-dsl`
10 `java-library`
11 id("dependencies-plugin")
12}
13
14val root = getRoot()
15
16java {
17 sourceSets.test.configure {
18 java.srcDir(root.resolveAll("src", "test", "examplesJava20"))
19 }
20 sourceCompatibility = JavaVersion.VERSION_20
21 targetCompatibility = JavaVersion.VERSION_20
22}
23
24dependencies { }
25
26// We just need to register the examples jars for it to be referenced by other modules.
27val buildExampleJars = buildJavaExamplesJars("Java20")
28
29tasks {
30 withType<JavaCompile> {
31 options.setFork(true)
32 options.forkOptions.memoryMaximumSize = "3g"
33 options.forkOptions.executable = getCompilerPath(Jdk.JDK_20)
34 }
35}
36