Commit b1d66972 authored by Alexey Tsvetkov's avatar Alexey Tsvetkov Committed by Alexey Tsvetkov

Set up publishing to new maven repo

parent 31c7ba98
...@@ -29,14 +29,12 @@ build configuration. ...@@ -29,14 +29,12 @@ build configuration.
./gradlew publishToBuildRepo ./gradlew publishToBuildRepo
``` ```
##### Publish to Space ##### Publish to Compose repo
Set up environment variables `SKIKO_SPACE_USERNAME` and `SKIKO_SPACE_KEY`. Set up environment variables `COMPOSE_REPO_USERNAME` and `COMPOSE_REPO_KEY`.
``` ```
./gradlew publishToSpace ./gradlew publishToComposeRepo
``` ```
See https://jetbrains.team/p/ui/packages/dev for published packages.
##### Publish to all repositories ##### Publish to all repositories
``` ```
./gradlew publish ./gradlew publish
......
...@@ -466,11 +466,11 @@ publishing { ...@@ -466,11 +466,11 @@ publishing {
url = uri("${rootProject.buildDir}/repo") url = uri("${rootProject.buildDir}/repo")
} }
maven { maven {
name = "Space" name = "ComposeRepo"
url = uri("https://packages.jetbrains.team/maven/p/ui/dev") url = uri(skiko.composeRepoUrl)
credentials { credentials {
username = System.getenv("SKIKO_SPACE_USERNAME") username = skiko.composeRepoUserName
password = System.getenv("SKIKO_SPACE_KEY") password = skiko.composeRepoKey
} }
} }
} }
......
...@@ -44,6 +44,15 @@ class SkikoProperties(private val myProject: Project) { ...@@ -44,6 +44,15 @@ class SkikoProperties(private val myProject: Project) {
val skiaDir: File? val skiaDir: File?
get() = (System.getenv()["SKIA_DIR"] ?: System.getProperty("skia.dir"))?.let { File(it) }?.takeIf { it.isDirectory } get() = (System.getenv()["SKIA_DIR"] ?: System.getProperty("skia.dir"))?.let { File(it) }?.takeIf { it.isDirectory }
val composeRepoUrl: String
get() = System.getenv("COMPOSE_REPO_URL") ?: "https://maven.pkg.jetbrains.space/public/p/compose/dev"
val composeRepoUserName: String
get() = System.getenv("COMPOSE_REPO_USERNAME")
val composeRepoKey: String
get() = System.getenv("COMPOSE_REPO_KEY")
val dependenciesDir: File val dependenciesDir: File
get() = myProject.rootProject.projectDir.resolve("dependencies") get() = myProject.rootProject.projectDir.resolve("dependencies")
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment