Skip to content

Commit

Permalink
GH-1960 Downgrade to JDK20 & Kotlin 1.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Oct 23, 2023
1 parent e99a728 commit 8b70c40
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
# Use 11 LTS releases and the latest one
java-version: [ 11, 21 ]
java-version: [ 11, 20 ]
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Publish releases"
on: workflow_dispatch

env:
JAVA_VERSION: 21
JAVA_VERSION: 20

jobs:
github:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "main" ]

env:
JAVA_VERSION: 21
JAVA_VERSION: 20

jobs:
maven:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM openjdk:21-slim AS build
FROM openjdk:20-slim AS build
COPY . /home/reposilite-build
WORKDIR /home/reposilite-build
RUN \
Expand All @@ -24,7 +24,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0"

# Run stage
FROM openjdk:21-slim
FROM openjdk:20-slim
RUN mkdir -p /app/data && mkdir -p /var/log/reposilite
VOLUME /app/data
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
application
`maven-publish`

val kotlinVersion = "1.9.20-RC"
val kotlinVersion = "1.9.10"
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion

Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
kotlin("jvm") version "1.9.20-RC"
// kotlin("jvm") version "1.9.20-RC"
`kotlin-dsl`
}

Expand All @@ -29,6 +29,6 @@ dependencies {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
// languageVersion.set(JavaLanguageVersion.of(21))
}
}
6 changes: 3 additions & 3 deletions reposilite-backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
val detekt = "1.23.0"
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detekt")

val kotlin = "1.9.20-RC"
val kotlin = "1.9.10"
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin")

Expand Down Expand Up @@ -208,7 +208,7 @@ jacoco {

tasks.test {
extensions.configure(JacocoTaskExtension::class) {
setDestinationFile(file("${layout.buildDirectory}/jacoco/jacoco.exec"))
setDestinationFile(file("${project.layout.buildDirectory.get()}/jacoco/jacoco.exec"))
}

finalizedBy("jacocoTestReport")
Expand All @@ -222,7 +222,7 @@ tasks.jacocoTestReport {
xml.outputLocation.set(file("./build/reports/jacoco/reposilite-backend-report.xml"))
}

executionData(fileTree(project.layout.buildDirectory).include("jacoco/*.exec"))
executionData(fileTree(project.layout.buildDirectory.get()).include("jacoco/*.exec"))
finalizedBy("jacocoTestCoverageVerification")
}

Expand Down
2 changes: 1 addition & 1 deletion reposilite-frontend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ val buildTask = tasks.register<NpmTask>("buildFrontend") {
inputs.dir(project.fileTree("src"))
inputs.dir("node_modules")
inputs.files("vite.config.js", "windi.config.js", "index.html")
outputs.dir("${project.buildDir}/frontend")
outputs.dir("${project.layout.buildDirectory.get()}/frontend")
}

sourceSets {
Expand Down

0 comments on commit 8b70c40

Please sign in to comment.