2023-03-15 21:52:13 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-11-09 18:58:31 +00:00
|
|
|
plugins {
|
|
|
|
id("cc-tweaked.kotlin-convention")
|
|
|
|
id("cc-tweaked.java-convention")
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2024-01-31 20:55:14 +00:00
|
|
|
exclusiveContent {
|
|
|
|
forRepositories(maven("https://maven.neoforged.net/releases"))
|
|
|
|
filter {
|
|
|
|
includeGroup("net.neoforged")
|
2022-11-09 18:58:31 +00:00
|
|
|
includeGroup("cpw.mods")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.kotlin.stdlib)
|
|
|
|
implementation(libs.errorProne.api)
|
|
|
|
implementation(libs.nullAway)
|
2022-11-10 00:03:09 +00:00
|
|
|
|
|
|
|
testImplementation(libs.bundles.test)
|
|
|
|
testImplementation(libs.errorProne.testHelpers)
|
2024-01-31 20:55:14 +00:00
|
|
|
testImplementation(libs.neoForgeSpi)
|
2022-11-10 00:03:09 +00:00
|
|
|
testCompileOnly(project(":core-api"))
|
|
|
|
testRuntimeOnly(libs.bundles.testRuntime)
|
2022-11-09 18:58:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
jvmArgs(
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
|
|
|
"--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
|
|
|
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
|
|
|
"--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
|
|
|
|
)
|
|
|
|
}
|