Build: Include project main source set output in jar

This commit is contained in:
Vyacheslav Gerasimov
2019-04-11 22:20:42 +03:00
parent d24c56e08d
commit 9b7a5e87d1
+4
View File
@@ -215,6 +215,10 @@ fun NamedDomainObjectContainer<TopLevelArtifact>.jarFromProject(project: Project
directory("META-INF") {
file("${project.buildDir}/tmp/jar/MANIFEST.MF")
}
if (project.sourceSets.names.contains("main")) {
moduleOutput(moduleName(project.path))
}
jarContentsFromEmbeddedConfiguration(project)