We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb082d3 commit 30a8735Copy full SHA for 30a8735
buildSrc/src/main/groovy/io/spring/gradle/convention/SpringModulePlugin.groovy
@@ -20,6 +20,7 @@ import org.gradle.api.JavaVersion
20
import org.gradle.api.Project
21
import org.gradle.api.plugins.JavaLibraryPlugin
22
import org.gradle.api.plugins.PluginManager
23
+import org.gradle.api.tasks.bundling.Jar
24
import org.springframework.gradle.maven.SpringMavenPlugin
25
26
/**
@@ -40,6 +41,11 @@ class SpringModulePlugin extends AbstractSpringJavaPlugin {
40
41
if (!Utils.isRelease(project)) {
42
deployArtifacts.dependsOn project.tasks.artifactoryPublish
43
}
44
+ project.tasks.withType(Jar) {
45
+ from(project.rootProject.files('LICENSE.txt')) {
46
+ into('META-INF')
47
+ }
48
49
50
51
0 commit comments