Skip to content

Commit

Permalink
chore: use lazy gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed May 2, 2023
1 parent 2a6c200 commit dfd72e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ publishing {
}
}

task execute(type:JavaExec) {
tasks.register('execute', JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
Expand Down Expand Up @@ -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()) {
Expand Down
6 changes: 3 additions & 3 deletions template/libraries/jersey2/build.gradle.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ publishing {
}
}

task execute(type:JavaExec) {
tasks.register('execute', JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit dfd72e0

Please sign in to comment.