Browse Source

Convert web/build.gradle to build.gradle.kts

pull/685/head
Shagen Ogandzhanian 4 years ago
parent
commit
2e3220451f
  1. 21
      web/build.gradle.kts

21
web/build.gradle → web/build.gradle.kts

@ -1,3 +1,5 @@
import org.gradle.api.publish.PublishingExtension
plugins { plugins {
id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false) id("org.jetbrains.kotlin.multiplatform") version("1.4.32") apply(false)
id("org.jetbrains.compose") version "0.0.0-web-dev-12" apply(false) id("org.jetbrains.compose") version "0.0.0-web-dev-12" apply(false)
@ -5,24 +7,27 @@ plugins {
subprojects { subprojects {
apply plugin: "maven-publish" apply(plugin = "maven-publish")
pluginManager.withPlugin("maven-publish") { pluginManager.withPlugin("maven-publish") {
publishing { configure<PublishingExtension> {
publications { publications {
maven(MavenPublication) { create<MavenPublication>("maven") {
groupId = "org.jetbrains.compose.web" groupId = "org.jetbrains.compose.web"
version = System.getenv("COMPOSE_WEB_VERSION") version = System.getenv("COMPOSE_WEB_VERSION")
} }
} }
repositories { repositories {
val COMPOSE_REPO_USERNAME: String? by project
val COMPOSE_REPO_KEY: String? by project
maven { maven {
name "internal" name = "internal"
url "https://maven.pkg.jetbrains.space/public/p/compose/dev" url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
credentials { credentials {
username = project.hasProperty("COMPOSE_REPO_USERNAME") ? "$COMPOSE_REPO_USERNAME" : "" username = COMPOSE_REPO_USERNAME ?: ""
password = project.hasProperty("COMPOSE_REPO_KEY") ? "$COMPOSE_REPO_KEY" : "" password = COMPOSE_REPO_KEY ?: ""
} }
} }
} }
@ -36,7 +41,7 @@ subprojects {
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
} }
maven { maven {
url("https://packages.jetbrains.team/maven/p/ui/dev") url = uri("https://packages.jetbrains.team/maven/p/ui/dev")
} }
} }
} }
Loading…
Cancel
Save