Browse Source

Fix web components build & publishing

pull/1658/head
Alexey Tsvetkov 3 years ago
parent
commit
ad394bada4
  1. 9
      web/build.gradle.kts
  2. 4
      web/settings.gradle.kts
  3. 4
      web/widgets/build.gradle.kts

9
web/build.gradle.kts

@ -2,6 +2,10 @@ import org.gradle.api.tasks.testing.AbstractTestTask
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.compose.gradle.kotlinKarmaConfig
plugins {
kotlin("multiplatform") apply false
}
val COMPOSE_WEB_VERSION: String by project
val COMPOSE_REPO_USERNAME: String? by project
val COMPOSE_REPO_KEY: String? by project
@ -30,6 +34,10 @@ subprojects {
group = "org.jetbrains.compose.web"
version = COMPOSE_WEB_VERSION
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
pluginManager.withPlugin("maven-publish") {
configure<PublishingExtension> {
repositories {
@ -116,4 +124,3 @@ subprojects {
}
}
}

4
web/settings.gradle.kts

@ -1,4 +1,3 @@
pluginManagement {
val COMPOSE_CORE_VERSION: String by settings
println("[build] compose core version: $COMPOSE_CORE_VERSION")
@ -24,13 +23,12 @@ pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
repos?.forEach { urlPath ->
maven {
url = uri(urlPath)
}
}
mavenLocal()
maven {
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}

4
web/widgets/build.gradle.kts

@ -49,3 +49,7 @@ kotlin {
}
}
}
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion = "16.0.0"
}

Loading…
Cancel
Save