@@ -51,11 +51,11 @@ patchPluginXml {
5151 pluginDescription = htmlFixer(' description.html' )
5252}
5353
54- task licenseTestData ( type : LicenseCheck ) {
54+ tasks . register( ' licenseTestData ' , LicenseCheck ) {
5555 source = fileTree(dir : " testData" ). include(" **/*" )
5656}
5757
58- task licenseFormatForKotlin ( type : LicenseFormat ) {
58+ tasks . register( ' licenseFormatForKotlin ' , LicenseFormat ) {
5959 source = fileTree(dir : " src/main" ). include(" **/*.kt" ). include(" **/*.xml" )
6060}
6161
@@ -118,7 +118,7 @@ dependencies {
118118 testRuntimeOnly(' org.immutables:value:2.10.1' )
119119}
120120
121- task libs ( type : Sync ) {
121+ tasks . register( ' libs ' , Sync ) {
122122 from(configurations. runtimeClasspath)
123123 into(layout. buildDirectory. dir(" libs" ))
124124 preserve {
@@ -128,10 +128,10 @@ task libs(type: Sync) {
128128 rename(' mapstruct-1.5.3.Final.jar' , ' mapstruct.jar' )
129129}
130130
131- task testLibs ( type : Sync ) {
132- from(configurations. testRuntimeClasspath)
133- into(" $buildDir /test-libs" )
134- rename(' value-2.10.1.jar' , ' immutables.jar' )
131+ tasks . register( ' testLibs ' , Sync ) {
132+ from(configurations. testRuntimeClasspath)
133+ into(" $buildDir /test-libs" )
134+ rename(' value-2.10.1.jar' , ' immutables.jar' )
135135}
136136
137137test. dependsOn( libs, testLibs )
0 commit comments