File tree Expand file tree Collapse file tree 5 files changed +23
-9
lines changed
gradle-plugin-integration-test-utils Expand file tree Collapse file tree 5 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 11import org.gradle.kotlin.dsl.configure
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
4+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
35
46plugins {
57 `java- library`
@@ -17,11 +19,24 @@ repositories {
1719}
1820
1921configure<KotlinJvmProjectExtension > {
20- // fix the toolchain for now
22+ // Set the toolchain 11 to do everything, because kotest doesn't support Java 8
2123 jvmToolchain(11 )
2224}
2325
26+
27+ tasks.withType<KotlinCompile >().configureEach {
28+ // manually decrease the version for releasing classes
29+ kotlinOptions {
30+ jvmTarget = " 1.8"
31+ }
32+ }
33+ tasks.withType<JavaCompile >().configureEach {
34+ // synchronize Java version with Kotlin compiler
35+ options.release.set(8 )
36+ }
37+
2438dependencies {
39+ // compile only - we will use Gradle dependency in real life
2540 compileOnly(kotlin(" stdlib" ))
2641 compileOnly(kotlin(" stdlib-jdk8" ))
2742}
Original file line number Diff line number Diff line change 33# This file is expected to be part of source control.
44com.google.code.findbugs:jsr305:3.0.2=runtimeClasspath,testRuntimeClasspath
55org.javassist:javassist:3.28.0-GA=runtimeClasspath,testRuntimeClasspath
6- org.jetbrains.kotlin:kotlin-stdlib:1.9.20=testRuntimeClasspath
7- org.jetbrains:annotations:13.0=testRuntimeClasspath
86org.reflections:reflections:0.10.2=runtimeClasspath,testRuntimeClasspath
97org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath
108empty=
Original file line number Diff line number Diff line change 33# This file is expected to be part of source control.
44com.google.code.findbugs:jsr305:3.0.2=runtimeClasspath,testRuntimeClasspath
55org.javassist:javassist:3.28.0-GA=runtimeClasspath,testRuntimeClasspath
6- org.jetbrains.kotlin:kotlin-stdlib:1.9.20=testRuntimeClasspath
7- org.jetbrains:annotations:13.0=testRuntimeClasspath
86org.reflections:reflections:0.10.2=runtimeClasspath,testRuntimeClasspath
97org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath
108empty=
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ net.java.dev.jna:jna:5.9.0=testRuntimeClasspath
5151org.hamcrest:hamcrest-core:1.3=testRuntimeClasspath
5252org.javassist:javassist:3.28.0-GA=testRuntimeClasspath
5353org.jetbrains.kotlin:kotlin-reflect:1.8.20=testRuntimeClasspath
54- org.jetbrains.kotlin:kotlin-stdlib-common:1.9 .20=testRuntimeClasspath
54+ org.jetbrains.kotlin:kotlin-stdlib-common:1.8 .20=testRuntimeClasspath
5555org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=testRuntimeClasspath
5656org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=testRuntimeClasspath
57- org.jetbrains.kotlin:kotlin-stdlib:1.9 .20=testRuntimeClasspath
57+ org.jetbrains.kotlin:kotlin-stdlib:1.8 .20=testRuntimeClasspath
5858org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.0=testRuntimeClasspath
5959org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.0=testRuntimeClasspath
6060org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0=testRuntimeClasspath
Original file line number Diff line number Diff line change 11kotlin.code.style =official
22
33group =io.github.build-extensions-oss
4- version =0.5.0
4+ version =0.5.1
55
66projectName =Gradle Plugin Utilities
77projectDescription =A collection of utilities for developing Gradle plugins
@@ -14,4 +14,7 @@ githubRepo=build-extensions-oss/gradle-plugin-utils
1414# Enable publication tasks by default
1515mavenCentralPublishing =true
1616# Sign everything by default - otherwise Maven Central will reject us
17- signAllPublications =true
17+ signAllPublications =true
18+
19+ # don't add stdlib dependency - we will not reference it, we will use it from Gradle
20+ kotlin.stdlib.default.dependency =false
You can’t perform that action at this time.
0 commit comments