Fix not including non java code in sources jar (#25)

Co-authored-by: Martin Robertz <dream-master@gmx.net>
This commit is contained in:
GleaseandMartin Robertz authored and GitHub committed 2022-02-20 17:58:17 +01:00
1 parent 9d092e5c74
commit a67665d33d
1 file changed
+2 -2
+2 -2
View File
@@ -462,7 +462,7 @@ def getManifestAttributes() {
}
task sourcesJar(type: Jar) {
from (sourceSets.main.allJava)
from (sourceSets.main.allSource)
from (file("$projectDir/LICENSE"))
getArchiveClassifier().set('sources')
}
@@ -517,7 +517,7 @@ task devJar(type: Jar) {
}
task apiJar(type: Jar) {
from (sourceSets.main.allJava) {
from (sourceSets.main.allSource) {
include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString().replaceAll("\\.", "/") + '/**'
}