[samples][libcurl] attach sources(def-file) to publication
This commit is contained in:
@@ -19,6 +19,13 @@ konanArtifacts {
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native"
|
def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native"
|
||||||
publishing {
|
publishing {
|
||||||
|
publications{
|
||||||
|
libcurl(MavenPublication){
|
||||||
|
artifact sourceJar{
|
||||||
|
classifier "source"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = localMavenRepo
|
url = localMavenRepo
|
||||||
@@ -26,3 +33,6 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task sourceJar(type: Jar) {
|
||||||
|
from project.files('src/main')
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user