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