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.
./gradlew publishToBuildRepo
```
##### Publish to Space
Set up environment variables `SKIKO_SPACE_USERNAME` and `SKIKO_SPACE_KEY`.
##### Publish to Compose repo
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
```
./gradlew publish
......
......@@ -466,11 +466,11 @@ publishing {
url = uri("${rootProject.buildDir}/repo")
}
maven {
name = "Space"
url = uri("https://packages.jetbrains.team/maven/p/ui/dev")
name = "ComposeRepo"
url = uri(skiko.composeRepoUrl)
credentials {
username = System.getenv("SKIKO_SPACE_USERNAME")
password = System.getenv("SKIKO_SPACE_KEY")
username = skiko.composeRepoUserName
password = skiko.composeRepoKey
}
}
}
......
......@@ -44,6 +44,15 @@ class SkikoProperties(private val myProject: Project) {
val skiaDir: File?
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
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