Dev #5
@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "ru.mipt.npm"
|
group = "ru.mipt.npm"
|
||||||
version = "0.7.0"
|
version = "0.7.0-fix"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
@ -86,8 +86,8 @@ class KScienceExtension(val project: Project) {
|
|||||||
js {
|
js {
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
(targets.findByName("native") as? KotlinNativeTarget)?.apply {
|
targets.filterIsInstance<KotlinNativeTarget>().forEach {
|
||||||
binaries.executable()
|
it.binaries.executable()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,9 @@ import org.gradle.kotlin.dsl.apply
|
|||||||
open class KScienceMPPlugin : Plugin<Project> {
|
open class KScienceMPPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project): Unit = project.run {
|
override fun apply(project: Project): Unit = project.run {
|
||||||
if (plugins.findPlugin("org.jetbrains.kotlin.multiplatform") == null) {
|
if (plugins.findPlugin("org.jetbrains.kotlin.multiplatform") == null) {
|
||||||
logger.info("Kotlin multiplatform plugin is not resolved. Adding it automatically")
|
|
||||||
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
|
pluginManager.apply("org.jetbrains.kotlin.multiplatform")
|
||||||
|
} else {
|
||||||
|
logger.info("Kotlin MPP plugin is already present")
|
||||||
}
|
}
|
||||||
plugins.apply(KScienceCommonPlugin::class)
|
plugins.apply(KScienceCommonPlugin::class)
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,14 @@ open class KSciencePublishPlugin : Plugin<Project> {
|
|||||||
override fun apply(project: Project): Unit = project.run {
|
override fun apply(project: Project): Unit = project.run {
|
||||||
plugins.apply("maven-publish")
|
plugins.apply("maven-publish")
|
||||||
|
|
||||||
|
// plugins.withId("org.jetbrains.kotlin.jvm"){
|
||||||
|
// extensions.findByType<JavaPluginExtension>()?.apply {
|
||||||
|
// withSourcesJar()
|
||||||
|
// //withJavadocJar()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
val githubOrg: String = project.findProperty("githubOrg") as? String ?: "mipt-npm"
|
val githubOrg: String = project.findProperty("githubOrg") as? String ?: "mipt-npm"
|
||||||
val githubProject: String? by project
|
val githubProject: String? by project
|
||||||
|
Loading…
Reference in New Issue
Block a user