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;
1919import org.gradle.api.Project
2020import org.gradle.api.plugins.JavaLibraryPlugin ;
2121import org.gradle.api.plugins.PluginManager
22+ import org.gradle.api.tasks.bundling.Jar
2223import org.springframework.gradle.classpath.CheckClasspathForProhibitedDependenciesPlugin ;
2324import org.springframework.gradle.maven.SpringMavenPlugin ;
2425
@@ -41,6 +42,10 @@ class SpringModulePlugin extends AbstractSpringJavaPlugin {
4142 if (! Utils . isRelease(project)) {
4243 deployArtifacts. dependsOn project. tasks. artifactoryPublish
4344 }
45+ project. tasks. withType(Jar ) {
46+ from(project. rootProject. files(' LICENSE.txt' ))
47+ into(' META-INF' )
48+ }
4449 }
4550
4651}
You can’t perform that action at this time.
0 commit comments