Include sources

This commit is contained in:
shedaniel
2020-10-04 02:27:32 +08:00
parent 07fedb7e76
commit e14ee6fabc

View File

@@ -49,6 +49,11 @@ gradlePlugin {
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier("sources")
from sourceSets.main.allSource
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
@@ -72,6 +77,7 @@ publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact(sourcesJar)
}
}