File tree 4 files changed +9
-3
lines changed
main/java/com/diffplug/atplug/tooling/gradle
test/java/com/diffplug/atplug/tooling
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
### Changed
5
- - Bump all dependencies to latest.
5
+ - Bump required JVM from 11 to 17. ([ #63 ] ( https://github.com/diffplug/atplug/pull/63 ) )
6
+ - Detect Kotlin version rather than harcode it. ([ #64 ] ( https://github.com/diffplug/atplug/pull/64 ) )
6
7
7
8
## [ 1.1.1] - 2024-07-06
8
9
### Changed
Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ class PlugPlugin : Plugin<Project> {
38
38
project.plugins.apply (JavaPlugin ::class .java)
39
39
val javaExtension = project.extensions.getByType(JavaPluginExtension ::class .java)
40
40
val main = javaExtension.sourceSets.getByName(SourceSet .MAIN_SOURCE_SET_NAME )
41
- val dep = project.dependencies.create(" org.jetbrains.kotlin:kotlin-reflect:1.8.20" )
41
+ val plugin =
42
+ project.plugins.findPlugin(" org.jetbrains.kotlin.jvm" )
43
+ as org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
44
+ val dep =
45
+ project.dependencies.create(" org.jetbrains.kotlin:kotlin-reflect:${plugin.pluginVersion} " )
42
46
val plugGenConfig =
43
47
project.configurations.create(" plugGenerate" ) { plugGen: Configuration ->
44
48
plugGen.extendsFrom(
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class PlugGeneratorTest : ResourceHarness() {
23
23
true ,
24
24
listOf (
25
25
" org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1" ,
26
- " org.jetbrains.kotlin:kotlin-reflect:1.8.20 " ))
26
+ " org.jetbrains.kotlin:kotlin-reflect:2.1.0 " ))
27
27
val atplug_runtime = mutableSetOf (findRuntimeJar())
28
28
atplug_runtime.addAll(transitives)
29
29
return atplug_runtime
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ subprojects {
48
48
dependencies {
49
49
implementation " org.ow2.asm:asm:9.7.1"
50
50
implementation ' com.diffplug.gradle:goomph:4.2.0'
51
+ implementation ' org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0'
51
52
testImplementation ' org.assertj:assertj-core:3.27.3'
52
53
}
53
54
tasks. named(' test' ) {
You can’t perform that action at this time.
0 commit comments