Skip to content

Commit a5337d0

Browse files
committed
use tasks.register
1 parent 184948e commit a5337d0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

136136
test.dependsOn( libs, testLibs )

0 commit comments

Comments
 (0)