Skip to content

Commit 68eb34c

Browse files
authored
Update dependencies (especially kotlin to 2.0) (#22)
2 parents 948e406 + a4502b7 commit 68eb34c

File tree

6 files changed

+37
-30
lines changed

6 files changed

+37
-30
lines changed

.github/workflows/deploy.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ jobs:
4343
uses: gradle/gradle-build-action@v3
4444
with:
4545
gradle-home-cache-cleanup: true
46-
- name: git fetch origin main
47-
run: git fetch origin main
46+
- run: git fetch origin main
4847
- name: publish all
4948
if: "${{ github.event.inputs.to_publish == 'all' }}"
5049
run: |
5150
./gradlew :changelogPush -Prelease=true -Penable_publishing=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all
51+
- run: git checkout main
52+
- run: git merge release
53+
- run: git push origin main

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# AtPlug releases
22

33
## [Unreleased]
4+
### Changed
5+
- Bump all dependencies to latest, especially Kotlin to 2.0. ([#22](https://github.com/diffplug/atplug/pull/22))
46

57
## [1.1.0] - 2023-04-06
68
### Added

atplug-plugin-gradle/src/test/java/com/diffplug/atplug/tooling/gradle/PlugPluginTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ class PlugPluginTest : GradleIntegrationHarness() {
1414
.toContent(
1515
"""
1616
plugins {
17-
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
17+
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
1818
id 'com.diffplug.atplug'
1919
}
2020
repositories {
2121
mavenCentral()
2222
}
2323
dependencies {
2424
implementation files("$runtimeJar")
25-
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
25+
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1"
2626
}
2727
"""
2828
.trimIndent())

build.gradle

+13-15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ plugins {
33
id 'com.diffplug.spotless-changelog'
44
}
55

6+
spotlessChangelog {
7+
tagMessage '{{changes}}'
8+
runAfterPush "gh release create release/{{version}} --title 'v{{version}}' --notes-from-tag"
9+
}
10+
611
repositories { mavenCentral() }
712

813
group =.proj('maven_group', 'the maven group, recommend com.diffplug')
@@ -11,46 +16,39 @@ allprojects {
1116
}
1217
apply from: 干.file('base/sonatype.gradle')
1318

14-
String VER_JUNIT_JUPITER = '5.9.2'
19+
String VER_JUNIT_JUPITER = '5.10.3'
1520
subprojects {
1621
apply from: 干.file('base/java.gradle')
1722
apply from: 干.file('base/kotlin.gradle')
18-
// kotlin {
19-
// sourceSets.all {
20-
// languageSettings {
21-
// languageVersion = "2.0"
22-
// }
23-
// }
24-
// }
2523
apply from: 干.file('spotless/java.gradle')
2624
apply plugin: 'java-library'
2725

2826
repositories { mavenCentral() }
2927

3028
dependencies {
31-
testImplementation "org.junit.jupiter:junit-jupiter-api:${VER_JUNIT_JUPITER}"
32-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${VER_JUNIT_JUPITER}"
29+
testImplementation "org.junit.jupiter:junit-jupiter:${VER_JUNIT_JUPITER}"
30+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
3331
}
3432
if (it.name == 'atplug-runtime') {
3533
ext.maven_name = 'AtPlug runtime'
3634
apply plugin: 'kotlinx-serialization'
3735
dependencies {
38-
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0"
36+
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1"
3937
}
4038
} else if (it.name == 'atplug-test-harness') {
4139
ext.maven_name='AtPlug test harness'
4240
dependencies {
4341
compileOnly "org.junit.jupiter:junit-jupiter-api:5.0.0"
44-
implementation "org.jetbrains.kotlin:kotlin-reflect:1.8.20"
42+
implementation "org.jetbrains.kotlin:kotlin-reflect:2.0.0"
4543
implementation project(':atplug-runtime')
4644
}
4745
} else if (it.name == 'atplug-plugin-gradle') {
4846
ext.maven_name='AtPlug metadata generation Gradle plugin'
4947
apply from: 干.file('base/gradle-plugin.gradle')
5048
dependencies {
51-
implementation "org.ow2.asm:asm:9.5"
52-
implementation 'com.diffplug.gradle:goomph:3.41.0'
53-
testImplementation 'org.assertj:assertj-core:3.24.2'
49+
implementation "org.ow2.asm:asm:9.7"
50+
implementation 'com.diffplug.gradle:goomph:4.0.1'
51+
testImplementation 'org.assertj:assertj-core:3.26.0'
5452
}
5553
tasks.named('test') {
5654
dependsOn ':atplug-runtime:jar', ':atplug-runtime:testClasses'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

settings.gradle

+15-10
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,36 @@ pluginManagement {
66
}
77
plugins {
88
// https://github.com/diffplug/blowdryer/blob/main/CHANGELOG.md
9-
id 'com.diffplug.blowdryerSetup' version '1.7.0'
9+
id 'com.diffplug.blowdryerSetup' version '1.7.1'
1010
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
11-
id 'com.diffplug.spotless' version '6.16.0' apply false
11+
id 'com.diffplug.spotless' version '7.0.0.BETA1' apply false
1212
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
13-
id 'com.diffplug.spotless-changelog' version '3.0.1' apply false
13+
id 'com.diffplug.spotless-changelog' version '3.1.1' apply false
1414
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
15-
id 'com.gradle.plugin-publish' version '1.1.0' apply false
15+
id 'com.gradle.plugin-publish' version '1.2.1' apply false
1616
// https://github.com/equodev/equo-ide/blob/main/plugin-gradle/CHANGELOG.md
17-
id 'dev.equo.ide' version '0.16.0' apply false
17+
id 'dev.equo.ide' version '1.7.6' apply false
1818
// https://github.com/gradle-nexus/publish-plugin/releases
19-
id 'io.github.gradle-nexus.publish-plugin' version '1.2.0' apply false
19+
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' apply false
2020
// https://plugins.gradle.org/plugin/org.jetbrains.dokka
21-
id 'org.jetbrains.dokka' version '1.8.10' apply false
21+
id 'org.jetbrains.dokka' version '1.9.20' apply false
2222
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm
23-
id 'org.jetbrains.kotlin.jvm' version '1.8.20' apply false
23+
id 'org.jetbrains.kotlin.jvm' version '2.0.0' apply false
2424
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.serialization
25-
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.20' apply false
25+
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.0' apply false
26+
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.multiplatform
27+
id 'org.jetbrains.kotlin.multiplatform' version '2.0.0' apply false
28+
// https://github.com/adamko-dev/dokkatoo/releases
29+
id 'dev.adamko.dokkatoo-html' version '2.3.1' apply false
2630
}
2731

2832
blowdryerSetup {
29-
github 'diffplug/blowdryer-diffplug', 'tag', '7.0.2'
33+
github 'diffplug/blowdryer-diffplug', 'tag', '7.3.0'
3034
//devLocal '../blowdryer-diffplug'
3135
setPluginsBlockTo {
3236
it.file 'plugin.versions'
3337
it.file 'plugin-kotlin.versions'
38+
it.replace '3.0.2', '3.1.1'
3439
}
3540
}
3641

0 commit comments

Comments
 (0)