Skip to content

Commit

Permalink
Set archiveClassifier of plugin jar to plugin
Browse files Browse the repository at this point in the history
Closes gh-417
  • Loading branch information
rainboyan committed Jul 25, 2024
1 parent f49d600 commit a1c8484
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2023 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -185,6 +185,7 @@ class GrailsPluginGradlePlugin extends GrailsGradlePlugin {

protected void configurePluginJarTask(Project project) {
Jar jarTask = (Jar) project.tasks.findByName('jar')
jarTask.archiveClassifier.set('plugin')
// re-enable, since Boot disable this
project.getTasks().getByName(JavaPlugin.JAR_TASK_NAME).setEnabled(true)
jarTask.exclude 'application.yml'
Expand Down

0 comments on commit a1c8484

Please sign in to comment.