Skip to content

Commit

Permalink
Merge pull request #13 from PascalHonegger/fix/jooq_generation
Browse files Browse the repository at this point in the history
Fix/jooq generation
  • Loading branch information
PascalHonegger authored Feb 24, 2023
2 parents 7a54d02 + 2ee8aef commit c734f5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Gradle Dependency Submission
on:
push:
Expand All @@ -12,23 +11,18 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout Gradle Build Cache
uses: actions/cache@v3
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: 'Checkout Repository'
uses: actions/checkout@v3
distribution: temurin
java-version: 19
cache: gradle

- name: Run snapshot action
uses: mikepenz/gradle-dependency-submission@main
with:
gradle-build-module: |-
:Backend:bootstrap
gradle-build-configuration: |-
compileClasspath
sub-module-mode: 'INDIVIDUAL_DEEP'
6 changes: 0 additions & 6 deletions Backend/data-access/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ tasks.withType<Test> {
useJUnitPlatform()
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of("19"))
}
}

jooq {
version.set(libs.versions.jooq.get())
edition.set(nu.studer.gradle.jooq.JooqEdition.OSS)
Expand Down
17 changes: 10 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

buildscript {
repositories {
mavenCentral()
Expand All @@ -24,15 +22,20 @@ allprojects {
mavenCentral()
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "19"
tasks.withType<JavaCompile>().configureEach {
val service = project.extensions.getByType<JavaToolchainService>()
val customProvider = service.compilerFor {
languageVersion.set(JavaLanguageVersion.of("19"))
}
javaCompiler.set(customProvider)
}

val javaLauncher = project.extensions.getByType<JavaToolchainService>().launcherFor {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.UsesKotlinJavaToolchain>().configureEach {
val service = project.extensions.getByType<JavaToolchainService>()
val customLauncher = service.launcherFor {
languageVersion.set(JavaLanguageVersion.of("19"))
}
kotlinJavaToolchain.toolchain.use(javaLauncher)
kotlinJavaToolchain.toolchain.use(customLauncher)
}
}

Expand Down

0 comments on commit c734f5f

Please sign in to comment.