Skip to content

Commit 46d37f9

Browse files
committed
1.3.0 - Fix workflow
1 parent 9d80c04 commit 46d37f9

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ jobs:
3030

3131
- name: Set up Gradle
3232
uses: gradle/actions/setup-gradle@v4
33-
with:
34-
gradle-version: "8.11.1"
33+
34+
- name: Make gradlew executable
35+
run: chmod +x gradlew VNC/gradlew
3536

3637
- name: Build with Gradle (Kotlin DSL)
37-
run: gradle --no-daemon clean jar sourcesJar javadocJar
38+
run: ./gradlew --no-daemon clean jar sourcesJar javadocJar
3839

3940
- name: Upload plugin artifact
4041
uses: actions/upload-artifact@v4
@@ -45,7 +46,7 @@ jobs:
4546
- name: Get Plugin Version
4647
id: version
4748
run: |
48-
VERSION=$(gradle -q properties --property version | awk '/^version:/ {print $2}')
49+
VERSION=$(./gradlew -q properties --property version | awk '/^version:/ {print $2}')
4950
if [ -z "$VERSION" ]; then
5051
echo "Could not determine project version"
5152
exit 1

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
kotlin("jvm") version "2.3.20-Beta1"
33
id("java-library")
44
id("io.freefair.lombok") version "9.4.0"
5-
id("com.gradleup.shadow") version "8.3.0"
5+
id("com.gradleup.shadow") version "9.4.1"
66
}
77

88
group = "me.croabeast"
@@ -101,7 +101,7 @@ val buildVncJar by tasks.registering(Exec::class) {
101101
if (org.gradle.internal.os.OperatingSystem.current().isWindows) {
102102
commandLine("cmd", "/c", "gradlew.bat", "jar", "sourcesJar")
103103
} else {
104-
commandLine("./gradlew", "jar", "sourcesJar")
104+
commandLine("bash", "gradlew", "jar", "sourcesJar")
105105
}
106106
}
107107

0 commit comments

Comments
 (0)