Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
b1d66972
Commit
b1d66972
authored
Sep 21, 2020
by
Alexey Tsvetkov
Committed by
Alexey Tsvetkov
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up publishing to new maven repo
parent
31c7ba98
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
RELEASE.md
skiko/RELEASE.md
+3
-5
build.gradle.kts
skiko/build.gradle.kts
+4
-4
properties.kt
skiko/buildSrc/src/main/kotlin/properties.kt
+9
-0
No files found.
skiko/RELEASE.md
View file @
b1d66972
...
...
@@ -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 publishTo
Space
./gradlew publishTo
ComposeRepo
```
See https://jetbrains.team/p/ui/packages/dev for published packages.
##### Publish to all repositories
```
./gradlew publish
...
...
skiko/build.gradle.kts
View file @
b1d66972
...
...
@@ -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
}
}
}
...
...
skiko/buildSrc/src/main/kotlin/properties.kt
View file @
b1d66972
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment