Skip to content

Commit

Permalink
Merge pull request #83 from nebula-plugins/stop-using-project-buildDir
Browse files Browse the repository at this point in the history
Stop using Project.getBuilDir() as it is deprecated in Gradle
  • Loading branch information
rpalcolea authored Jul 11, 2023
2 parents bd2dad0 + d069047 commit d200ace
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class NebulaFacetPlugin implements Plugin<Project> {
void execute(Test test) {
test.setGroup(JavaBasePlugin.VERIFICATION_GROUP)
test.setDescription("Runs the ${sourceSet.name} tests")
test.reports.html.outputLocation.set(new File("${project.buildDir}/reports/${sourceSet.name}"))
test.reports.junitXml.outputLocation.set(new File("${project.buildDir}/${sourceSet.name}-results"))
test.reports.html.outputLocation.set(project.layout.buildDirectory.dir("reports/${sourceSet.name}"))
test.reports.junitXml.outputLocation.set(project.layout.buildDirectory.dir("${sourceSet.name}-results"))
test.testClassesDirs = sourceSet.output.classesDirs
test.classpath = sourceSet.runtimeClasspath
test.shouldRunAfter(project.tasks.named('test'))
Expand Down

0 comments on commit d200ace

Please sign in to comment.