Maven source publishing

This commit is contained in:
493msi 2020-09-18 14:50:51 +02:00
parent 504e1884fa
commit 87cb3f54bd
1 changed files with 9 additions and 0 deletions

View File

@ -48,10 +48,19 @@ subprojects {
targetCompatibility = JavaVersion.VERSION_11
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allJava
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
}
}
}