Skip to content

Commit caa4d35

Browse files
committed
Specify java versions, update version to try out jitpack publisher again
1 parent b1d1c96 commit caa4d35

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/publish-to-jitpack.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ on:
33
types: [published]
44

55
jobs:
6-
build:
6+
publish-to-jitpack:
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Setup JDK 21
10+
uses: actions/setup-java@v4
11+
with:
12+
distribution: 'adopt'
13+
java-version: '21'
14+
915
- uses: badasintended/autojitpack@v1
1016
with:
1117
version: ${{ github.event.release.tag_name }}

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ tasks.withType<Test> {
2626
useJUnitPlatform()
2727
}
2828

29+
java {
30+
sourceCompatibility = JavaVersion.VERSION_21
31+
targetCompatibility = JavaVersion.VERSION_21
32+
toolchain {
33+
languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_21.toString()))
34+
}
35+
}
36+
2937
publishing {
3038
publications {
3139
create<MavenPublication>("maven") {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object Publishing {
22
const val ArtifactId = "kotlin-aoc-utilities"
33
const val GroupId = "com.github.jsoberg"
4-
const val Version = "2025.1"
4+
const val Version = "2025.1.1"
55
}

0 commit comments

Comments
 (0)