Build: Migrate stdlib & kotlin-test to maven-publish publication
This commit is contained in:
@@ -7,20 +7,14 @@ plugins {
|
||||
id("com.github.node-gradle.node") version "2.2.0"
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
val default = configurations.getByName(Dependency.DEFAULT_CONFIGURATION)
|
||||
val archives = configurations.getByName(Dependency.ARCHIVES_CONFIGURATION)
|
||||
|
||||
default.extendsFrom(archives)
|
||||
|
||||
plugins.apply("maven")
|
||||
|
||||
convention.getPlugin(MavenPluginConvention::class.java).also {
|
||||
it.conf2ScopeMappings.addMapping(MavenPlugin.RUNTIME_PRIORITY, archives, Conf2ScopeMappingContainer.RUNTIME)
|
||||
}
|
||||
default.extendsFrom(configurations.publishedRuntime.get())
|
||||
|
||||
dependencies {
|
||||
if (!kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||
archives(project(":kotlin-test:kotlin-test-js"))
|
||||
publishedRuntime(project(":kotlin-test:kotlin-test-js"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,12 +82,6 @@ val jar by tasks.creating(Jar::class) {
|
||||
}
|
||||
|
||||
artifacts {
|
||||
add(
|
||||
"archives",
|
||||
jar.archiveFile.get().asFile
|
||||
) {
|
||||
builtBy(jar)
|
||||
}
|
||||
add(configurations.archives.name, jar)
|
||||
add(configurations.publishedRuntime.name, jar)
|
||||
}
|
||||
|
||||
publishWithLegacyMavenPlugin()
|
||||
Reference in New Issue
Block a user