-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated buildDir
#898
base: master
Are you sure you want to change the base?
Changes from all commits
938ab84
417d9d7
696ac2a
a14b212
a3d52f3
90867dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -583,7 +583,7 @@ def createCheckTypeTask(projectName, taskName, checker, args = []) { | |
outputs.upToDateWhen { false } | ||
source = project("${projectName}").sourceSets.main.java | ||
classpath = files(project("${projectName}").compileJava.classpath,project(':checker-qual').sourceSets.main.output) | ||
destinationDirectory = file("${buildDir}") | ||
destinationDirectory = file("${layout.buildDirectory.get().asFile}") | ||
|
||
options.annotationProcessorPath = files(project(':checker').tasks.shadowJar.archiveFile) | ||
options.compilerArgs += [ | ||
|
@@ -769,7 +769,7 @@ task downloadJtreg(type: Download) { | |
// dest new File(buildDir, 'jtreg-4.2.0-tip.tar.gz') | ||
// src 'https://builds.shipilev.net/jtreg/jtreg4.2-b16.zip' | ||
src 'https://builds.shipilev.net/jtreg/jtreg-7.5+1.zip' | ||
dest new File(buildDir, 'jtreg.zip') | ||
dest new File(layout.buildDirectory.asFile.get(), 'jtreg.zip') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the difference between There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's a good question. I will ask gradle people on slack. Looks like both of them return a file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it doesn't matter, pick one ordering and consistently use it. |
||
overwrite true | ||
retries 3 | ||
|
||
|
@@ -1061,7 +1061,7 @@ subprojects { | |
def isFramework = project.name.is('framework') | ||
def isChecker = project.name.is('checker') | ||
|
||
String jtregOutput = "${buildDir}/jtreg" | ||
String jtregOutput = "${layout.buildDirectory.get().asFile}/jtreg" | ||
String name = 'all' | ||
String tests = '.' | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't that already be a file?