Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
netdpb committed Nov 16, 2023
1 parent 75be194 commit 64dde9f
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,20 @@ tasks.withType(JavaCompile).configureEach {
options.errorprone.disable("BadImport")

options.compilerArgs.addAll(
["api", "code", "comp", "file", "main", "model", "parser", "processing", "resources", "tree", "util"]
.collect { "--add-exports=jdk.compiler/com.sun.tools.javac.$it=ALL-UNNAMED" })
[
"api",
"code",
"comp",
"file",
"main",
"model",
"parser",
"processing",
"resources",
"tree",
"util",
]
.collect { "--add-exports=jdk.compiler/com.sun.tools.javac.$it=ALL-UNNAMED" })
}

tasks.withType(Test).configureEach {
Expand All @@ -66,7 +78,15 @@ tasks.withType(Test).configureEach {
}

// Required because checker-framework uses APIs from these modules.
jvmArgs(["code", "comp", "main", "processing", "tree", "util"]
jvmArgs(
[
"code",
"comp",
"main",
"processing",
"tree",
"util",
]
.collect { "--add-opens=jdk.compiler/com.sun.tools.javac.$it=ALL-UNNAMED" })

testLogging {
Expand Down Expand Up @@ -121,14 +141,17 @@ clean.doFirst {

def cfQualJar =
checkerFramework.projectDir.toPath()
.resolve("checker-qual/build/libs/checker-qual-${libs.versions.checkerFramework.get()}.jar")
.resolve("checker-qual/build/libs/checker-qual-${libs.versions.checkerFramework.get()}.jar")

if (!cfQualJar.toFile().exists()) {
mkdir(cfQualJar.parent)
exec {
executable 'jar'
// Include just this build script file!
args = ['cf', cfQualJar, buildFile.path]
args = [
'cf',
cfQualJar,
buildFile.path // Use this build script file!
]
}
}

Expand Down

0 comments on commit 64dde9f

Please sign in to comment.