Browse Source

[web] Set group id and version as a simple project properties

As opposed to the failed attempt of configurating it via publishing
Also:  Update path in compose.web.web accordingly
pull/685/head
Shagen Ogandzhanian 4 years ago
parent
commit
d501a6f721
  1. 2
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt
  2. 10
      web/build.gradle.kts

2
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

@ -151,7 +151,7 @@ class ComposePlugin : Plugin<Project> {
object WebDependencies {
val web by lazy {
composeDependency("org.jetbrains.compose.web:web")
composeDependency("org.jetbrains.compose.web:web-core")
}
}
}

10
web/build.gradle.kts

@ -9,15 +9,11 @@ val COMPOSE_WEB_VERSION: String by project
subprojects {
apply(plugin = "maven-publish")
group = "org.jetbrains.compose.web"
version = COMPOSE_WEB_VERSION
pluginManager.withPlugin("maven-publish") {
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
groupId = "org.jetbrains.compose.web"
version = COMPOSE_WEB_VERSION
}
}
repositories {
val COMPOSE_REPO_USERNAME: String? by project
val COMPOSE_REPO_KEY: String? by project

Loading…
Cancel
Save