mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-25 20:23:22 +00:00

Okay, listen. I started writing a few more gametests (see #1682), and
then thought I'd do a cheeky Gradle update. However, that broke
vanilla-extract[^1], and also triggered a load of deprecation warnings,
and at that point it was too late to separate the too.
[^1]: 8975ed5a7b
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
// SPDX-FileCopyrightText: 2022 The CC: Tweaked Developers
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("cc-tweaked.java-convention")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://maven.minecraftforge.net") {
|
|
content {
|
|
includeGroup("net.minecraftforge")
|
|
includeGroup("cpw.mods")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.kotlin.stdlib)
|
|
implementation(libs.errorProne.api)
|
|
implementation(libs.nullAway)
|
|
|
|
testImplementation(libs.bundles.test)
|
|
testImplementation(libs.errorProne.testHelpers)
|
|
testImplementation(libs.forgeSpi)
|
|
testCompileOnly(project(":core-api"))
|
|
testRuntimeOnly(libs.bundles.testRuntime)
|
|
}
|
|
|
|
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",
|
|
)
|
|
}
|