Skip to content

Commit

Permalink
build: use skiko from reposilite
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 8, 2024
1 parent 9ae39fe commit 79888d2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Build and Test"
on:
release:
types: [ published ]
env:
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Build with Gradle
run: ./gradlew build -Pdeploy.version=${{github.ref_name}} publish
13 changes: 5 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ group = "dev.silenium.compose"
version = "0.0.0-SNAPSHOT"

repositories {
mavenLocal()
maven("https://reposilite.silenium.dev/snapshots") {
name = "reposilite"
}
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google()
Expand Down Expand Up @@ -40,14 +42,9 @@ dependencies {
}

implementation(libs.bundles.kotlinx.coroutines)
implementation("org.jetbrains.skiko:skiko-awt:0.0.0-SNAPSHOT") {
version {
strictly("0.0.0-SNAPSHOT")
}
}
implementation("org.jetbrains.skiko:skiko-awt-runtime-linux-x64:0.0.0-SNAPSHOT") {
implementation(libs.bundles.skiko) {
version {
strictly("0.0.0-SNAPSHOT")
strictly(libs.bundles.skiko.get().first().version!!)
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
kotlinx-coroutines = "1.8.1"
lwjgl = "3.3.3"
skiko = "0.8.10-egl"

[libraries]
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
Expand All @@ -16,6 +17,9 @@ lwjgl-egl = { group = "org.lwjgl", name = "lwjgl-egl", version.ref = "lwjgl" }
lwjgl-glfw = { group = "org.lwjgl", name = "lwjgl-glfw", version.ref = "lwjgl" }
lwjgl-opengles = { group = "org.lwjgl", name = "lwjgl-opengles", version.ref = "lwjgl" }

skiko-awt = { group = "org.jetbrains.skiko", name = "skiko-awt", version.ref = "skiko" }
skiko-awt-runtime-linux-x64 = { group = "org.jetbrains.skiko", name = "skiko-awt-runtime-linux-x64", version.ref = "skiko" }

[bundles]
kotlinx-coroutines = [
"kotlinx-coroutines-core",
Expand All @@ -26,6 +30,11 @@ kotlinx-coroutines = [
"kotlinx-coroutines-swing",
]

skiko = [
"skiko-awt",
"skiko-awt-runtime-linux-x64",
]

lwjgl-natives = [
"lwjgl-core",
"lwjgl-glfw",
Expand Down

0 comments on commit 79888d2

Please sign in to comment.