Skip to content

Commit

Permalink
Change build file to configure tasks lazily.
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei committed Nov 25, 2023
1 parent 8a02ff2 commit 174ac1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ tasks.named('compileTestGroovy').configure {
dependsOn compileGsonViews
}

compileGsonViews {
tasks.named('compileGsonViews').configure {
// This is needed for the gson view to be resolved from plugin
packageName = 'inertia'
}
tasks.withType(Groovydoc).configureEach {
dependsOn compileGsonViews
}

bootJar.enabled = false
jar {
tasks.named('bootJar').configure {
enabled = false
}
tasks.withType(Jar).configureEach {
enabled = true
archiveClassifier.set ''
archiveClassifier = ''
}

ext.pomInfo = {
Expand Down

0 comments on commit 174ac1f

Please sign in to comment.