File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package io.spring.gradle.convention;
19
19
import org.gradle.api.Project
20
20
import org.gradle.api.plugins.JavaLibraryPlugin ;
21
21
import org.gradle.api.plugins.PluginManager
22
+ import org.gradle.api.tasks.bundling.Jar
22
23
import org.springframework.gradle.classpath.CheckClasspathForProhibitedDependenciesPlugin ;
23
24
import org.springframework.gradle.maven.SpringMavenPlugin ;
24
25
@@ -41,6 +42,10 @@ class SpringModulePlugin extends AbstractSpringJavaPlugin {
41
42
if (! Utils . isRelease(project)) {
42
43
deployArtifacts. dependsOn project. tasks. artifactoryPublish
43
44
}
45
+ project. tasks. withType(Jar ) {
46
+ from(project. rootProject. files(' LICENSE.txt' ))
47
+ into(' META-INF' )
48
+ }
44
49
}
45
50
46
51
}
You can’t perform that action at this time.
0 commit comments