diff --git a/backend.native/build.gradle b/backend.native/build.gradle index c6115a871ff..989c583af27 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -176,6 +176,13 @@ task zipStdLibSources(type: Zip, dependsOn: unzipStdlibSources) { destinationDir buildDir } +task teamcityPublishStdLibSources { + dependsOn zipStdLibSources + doLast { + println " ##teamcity[publishArtifacts '${tasks.zipStdLibSources.archivePath}'] " + } +} + // These files are built before the 'dist' is complete, // so we provide custom values for // konan.home, --runtime, -Djava.library.path etc diff --git a/build.gradle b/build.gradle index bc14713d19f..c89ad245af2 100644 --- a/build.gradle +++ b/build.gradle @@ -278,6 +278,7 @@ task listDist(type: Exec) { task distRuntime(type: Copy) { dependsOn "${hostName}CrossDistRuntime" dependsOn('commonDistRuntime') + dependsOn(':backend.native:teamcityPublishStdLibSources') } def stdlib = 'klib/common/stdlib'