diff --git a/web/build.gradle b/web/build.gradle.kts similarity index 55% rename from web/build.gradle rename to web/build.gradle.kts index 3e26ae1807..5212c3520b 100644 --- a/web/build.gradle +++ b/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 { publications { - maven(MavenPublication) { + create("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") } } }