Skip to content

Commit 8e0fff8

Browse files
committed
remove deprecated call to Task.getProject()
1 parent a52be85 commit 8e0fff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tasks.register('licenseFormatForKotlin', LicenseFormat) {
5454
}
5555

5656
license {
57-
header = rootProject.file('etc/license.txt')
57+
header = file('etc/license.txt')
5858
strictCheck = true
5959
mapping {
6060
java = 'SLASHSTAR_STYLE' // IntelliJ reports the JAVADOC_STYLE as a dangling comment
@@ -73,7 +73,7 @@ checkstyle {
7373
toolVersion = '8.36.1'
7474
config = resources.text.fromUri("https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml")
7575
configProperties = [
76-
'checkstyle.cache.file': rootProject.layout.buildDirectory.get().asFile.toPath( ).resolve( 'checkstyle-cachefile').toString(),
76+
'checkstyle.cache.file': layout.buildDirectory.get().asFile.toPath( ).resolve( 'checkstyle-cachefile').toString(),
7777
'basedir': 'https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config',
7878
]
7979
}

0 commit comments

Comments
 (0)