Skip to content

Commit 73d94ce

Browse files
committed
remove deprecated call to Task.getProject()
1 parent 84da4e0 commit 73d94ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle

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

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

0 commit comments

Comments
 (0)