Browse Source

Update maven repo configuration for uber jar

pull/6/head
Alexey Tsvetkov 4 years ago committed by Alexey Tsvetkov
parent
commit
4b1edfb165
  1. 2
      ci/compose-uber-jar/README.md
  2. 9
      ci/compose-uber-jar/build.gradle.kts
  3. 2
      ci/compose-uber-jar/gradle.properties

2
ci/compose-uber-jar/README.md

@ -22,5 +22,5 @@ The jar will be available at `build/libs/compose-full.jar`
```
export COMPOSE_REPO_USERNAME=<COMPOSE_REPO_USERNAME>
export COMPOSE_REPO_KEY=<COMPOSE_REPO_KEY>
./gradlew publishToSpace
./gradlew publishToComposeRepo
```

9
ci/compose-uber-jar/build.gradle.kts

@ -33,8 +33,8 @@ val shadowJar = tasks.named("shadowJar", ShadowJar::class) {
archiveFileName.set("compose-full.jar")
}
tasks.register("publishToSpace") {
dependsOn(tasks.named("publishAllPublicationsToSpaceRepository"))
tasks.register("publishToComposeRepo") {
dependsOn(tasks.named("publishAllPublicationsToComposeRepoRepository"))
}
publishing {
@ -48,7 +48,7 @@ publishing {
}
repositories {
maven(properties.composeRepoUrl) {
name = "Space"
name = "ComposeRepo"
authentication {
credentials {
username = properties.composeRepoUserName
@ -66,7 +66,8 @@ class ComposeUberJarProperties {
val composeVersionFile: String?
get() = typedProperty<String>(COMPOSE_VERSION_FILE_PROPERTY)
val composeRepoUrl: String = "https://packages.jetbrains.team/maven/p/ui/dev"
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")

2
ci/compose-uber-jar/gradle.properties

@ -1,2 +1,2 @@
compose.version=0.1.0-build49
compose.version=0.1.0-build63
kotlin.code.style=official
Loading…
Cancel
Save