diff --git a/build.gradle b/build.gradle index cbc5ba6..bc04f75 100644 --- a/build.gradle +++ b/build.gradle @@ -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) } }