@@ -50,11 +50,11 @@ patchPluginXml {
5050 pluginDescription = htmlFixer(' description.html' )
5151}
5252
53- task licenseTestData ( type : LicenseCheck ) {
53+ tasks . register( ' licenseTestData ' , LicenseCheck ) {
5454 source = fileTree(dir : " testData" ). include(" **/*" )
5555}
5656
57- task licenseFormatForKotlin ( type : LicenseFormat ) {
57+ tasks . register( ' licenseFormatForKotlin ' , LicenseFormat ) {
5858 source = fileTree(dir : " src/main" ). include(" **/*.kt" ). include(" **/*.xml" )
5959}
6060
@@ -117,7 +117,7 @@ dependencies {
117117 testRuntimeOnly(' org.immutables:value:2.10.1' )
118118}
119119
120- task libs ( type : Sync ) {
120+ tasks . register( ' libs ' , Sync ) {
121121 from(configurations. runtimeClasspath)
122122 into(layout. buildDirectory. dir(" libs" ))
123123 preserve {
@@ -127,10 +127,10 @@ task libs(type: Sync) {
127127 rename(' mapstruct-1.5.3.Final.jar' , ' mapstruct.jar' )
128128}
129129
130- task testLibs ( type : Sync ) {
131- from(configurations. testRuntimeClasspath)
132- into(" $buildDir /test-libs" )
133- rename(' value-2.10.1.jar' , ' immutables.jar' )
130+ tasks . register( ' testLibs ' , Sync ) {
131+ from(configurations. testRuntimeClasspath)
132+ into(" $buildDir /test-libs" )
133+ rename(' value-2.10.1.jar' , ' immutables.jar' )
134134}
135135
136136test. dependsOn( libs, testLibs )
0 commit comments