From 8c8e5ce3161c1da3782c875488c83c037a851682 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 8 Jun 2018 12:27:21 +0300 Subject: [PATCH] [samples][libcurl] attach sources(def-file) to publication --- samples/libcurl/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samples/libcurl/build.gradle b/samples/libcurl/build.gradle index 43bbd4b7434..787d5fe132e 100644 --- a/samples/libcurl/build.gradle +++ b/samples/libcurl/build.gradle @@ -19,6 +19,13 @@ konanArtifacts { apply plugin: 'maven-publish' def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native" publishing { + publications{ + libcurl(MavenPublication){ + artifact sourceJar{ + classifier "source" + } + } + } repositories { maven { url = localMavenRepo @@ -26,3 +33,6 @@ publishing { } } +task sourceJar(type: Jar) { + from project.files('src/main') +} \ No newline at end of file