Skip to content

Commit 00e7241

Browse files
committed
Address deprecation warning "Invocation of Task.project at execution time"
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
1 parent beb287b commit 00e7241

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ jar {
219219
}
220220
}
221221

222-
223-
224222
xsd2java {
225223
// JAXB XJC: JAXB Binding Compiler
226224
// https://github.com/qaware/xsd2java-gradle-plugin
@@ -233,7 +231,7 @@ xsd2java {
233231

234232
extension = true
235233
arguments ['-verbose']
236-
outputDir = project.layout.buildDirectory.dir("generated/sources/java/main").get().asFile
234+
outputDir = layout.buildDirectory.dir("generated/sources/java/main").get().asFile
237235

238236
}
239237

@@ -263,7 +261,7 @@ shadowJar {
263261
sourceSets {
264262
main {
265263
java {
266-
srcDir project.layout.buildDirectory.dir("generated/sources/java/main").get().asFile
264+
srcDir layout.buildDirectory.dir("generated/sources/java/main").get().asFile
267265
}
268266
}
269267
}
@@ -307,7 +305,6 @@ tasks.withType(Javadoc).configureEach {
307305
}
308306

309307

310-
311308
spotbugsMain {
312309
reports {
313310
html {
@@ -359,8 +356,6 @@ checkstyle {
359356
configFile =rootProject.file('config/checkstyle/checkstyle.xml')
360357
}
361358

362-
363-
364359
spotless {
365360
// optional: limit format enforcement to just the files changed by this feature branch
366361
ratchetFrom 'origin/master'

0 commit comments

Comments
 (0)