diff --git a/build.gradle b/build.gradle index f2f395a..9949214 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ publishing { } } -task execute(type:JavaExec) { +tasks.register('execute', JavaExec) { main = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } @@ -123,14 +123,14 @@ jar { from configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } } -task runFunctionalTests(type: JavaExec) { +tasks.register('runFunctionalTests', JavaExec) { group = "execute" description = "Run the Functional Tests" classpath = sourceSets.main.runtimeClasspath main = 'com.fingerprint.example.FunctionalTests' } -task removeWrongDocumentationLinks { +tasks.register('removeWrongDocumentationLinks') { doLast { fileTree("./docs").visit { FileVisitDetails details -> if (details.file.isFile()) { diff --git a/template/libraries/jersey2/build.gradle.mustache b/template/libraries/jersey2/build.gradle.mustache index 6126e2b..38d4fca 100644 --- a/template/libraries/jersey2/build.gradle.mustache +++ b/template/libraries/jersey2/build.gradle.mustache @@ -42,7 +42,7 @@ publishing { } } -task execute(type:JavaExec) { +tasks.register('execute', JavaExec) { main = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } @@ -142,14 +142,14 @@ jar { from configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } } -task runFunctionalTests(type: JavaExec) { +tasks.register('runFunctionalTests', JavaExec) { group = "execute" description = "Run the Functional Tests" classpath = sourceSets.main.runtimeClasspath main = 'com.fingerprint.example.FunctionalTests' } -task removeWrongDocumentationLinks { +tasks.register('removeWrongDocumentationLinks') { doLast { fileTree("./docs").visit { FileVisitDetails details -> if (details.file.isFile()) {