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