Skip to content

Commit

Permalink
do not enfoce jdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Sep 18, 2023
1 parent 223c2fd commit ee515d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions conventions-vclib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import java.io.FileInputStream
import java.util.*

plugins {
`kotlin-dsl`
idea
}
group = "at.asitplus.gradle"

idea {
project {
jdkName = "11" //TODO use from ASP conventions plugin?
}
private val versions = Properties().apply {
kotlin.runCatching { load(FileInputStream(rootProject.file("gradle-conventions-plugin/src/main/resources/versions.properties"))) }
}

dependencies {
Expand All @@ -19,15 +20,6 @@ repositories {
mavenCentral()
gradlePluginPortal()
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11/*TODO share*/))
}
/*compilerOptions {
languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9)
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_9)
}*/
}

gradlePlugin {
plugins.register("vclib-conventions") {
Expand Down

0 comments on commit ee515d7

Please sign in to comment.