Skip to content

Commit

Permalink
Remove -plain suffix from plugin artifacts (#525)
Browse files Browse the repository at this point in the history
Also disable the `bootJar` task which should not be enabled for Grails plugins.
  • Loading branch information
matrei authored Oct 30, 2024
1 parent 1f4747c commit e2f68f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
7 changes: 7 additions & 0 deletions gradle/grails-plugin-config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tasks.named('bootJar') {
enabled = false // Plugins should not create a bootJar
}
tasks.named('jar', Jar) {
enabled = true // Enable the jar task again, as the bootJar task has been disabled
archiveClassifier = '' // Remove '-plain' suffix from jar file name
}
8 changes: 3 additions & 5 deletions grails-plugin-gsp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ dependencies {

testRuntimeOnly "org.grails:grails-plugin-url-mappings:$grailsVersion"
}
// disable main class
bootJar {
mainClass.set('dummy.Application')
}
findMainClass.onlyIf { false }

test {
if (isCiBuild) {
maxParallelForks = 1
Expand All @@ -62,3 +58,5 @@ test {
System.out.flush()
}
}

apply from: rootProject.layout.projectDirectory.file('gradle/grails-plugin-config.gradle')
7 changes: 2 additions & 5 deletions grails-plugin-sitemesh2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ dependencies {
exclude group:'org.grails', module:'grails-web-common'
}
}
// disable main class
bootJar {
mainClass.set('dummy.Application')
}
findMainClass.onlyIf { false }

apply from: rootProject.layout.projectDirectory.file('gradle/grails-plugin-config.gradle')

0 comments on commit e2f68f8

Please sign in to comment.