Skip to content

Commit 236ce82

Browse files
committed
Update Gradle wrapper (all-in-all commit)
1 parent 54d081f commit 236ce82

File tree

18 files changed

+91
-15
lines changed

18 files changed

+91
-15
lines changed

build-plugin/common-dependencies/build.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ sourceSets {
2727
}
2828
}
2929

30+
val myJvmTarget = libs.versions.jvmTarget.get()
31+
val myJvmTargetInt = myJvmTarget.substringAfter('.').toInt()
32+
3033
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
3134
kotlinOptions {
3235
apiVersion = "1.4"
@@ -35,7 +38,13 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
3538
@Suppress("SuspiciousCollectionReassignment")
3639
freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn")
3740

38-
jvmTarget = libs.versions.jvmTarget.get()
41+
this.jvmTarget = myJvmTarget
42+
}
43+
}
44+
45+
java {
46+
toolchain {
47+
languageVersion.set(JavaLanguageVersion.of(myJvmTargetInt))
3948
}
4049
}
4150

build-plugin/plugin-versions-plugin/build.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ dependencies {
2121
}
2222
}
2323

24+
val myJvmTarget = libs.versions.jvmTarget.get()
25+
val myJvmTargetInt = myJvmTarget.substringAfter('.').toInt()
26+
2427
tasks.withType<KotlinCompile> {
2528
kotlinOptions {
26-
jvmTarget = libs.versions.jvmTarget.get()
29+
jvmTarget = myJvmTarget
30+
}
31+
}
32+
33+
java {
34+
toolchain {
35+
languageVersion.set(JavaLanguageVersion.of(myJvmTargetInt))
2736
}
2837
}
2938

build-plugin/plugin-versions-plugin/settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
rootProject.name = "plugin-versions"
44

5+
plugins {
6+
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
7+
}
8+
59
dependencyResolutionManagement {
610
versionCatalogs {
711
create("libs") {

build-plugin/settings.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
@file:Suppress("UnstableApiUsage")
22

3-
enableFeaturePreview("VERSION_CATALOGS")
43
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
54

65
rootProject.name = "build"
76

7+
plugins {
8+
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
9+
}
10+
811
dependencyResolutionManagement {
912
versionCatalogs {
1013
create("libs") {

build-plugin/src/build/BuildSettingsExtension.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.gradle.kotlin.dsl.withType
1515
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1616

1717
class BuildSettingsExtension(private val project: Project) {
18-
fun withTests() {
18+
fun withTests(configure: Test.() -> Unit = {}) {
1919
val deps = project.defaultVersionCatalog.dependencies
2020

2121
project.dependencies {
@@ -30,6 +30,7 @@ class BuildSettingsExtension(private val project: Project) {
3030
testLogging {
3131
events("passed", "skipped", "failed")
3232
}
33+
configure()
3334
}
3435
}
3536

build-plugin/src/build/InstallTasksConfigurator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class InstallTasksConfigurator(
4242
val groupName = if (local) LOCAL_INSTALL_GROUP else DISTRIBUTION_GROUP
4343
val cleanDirTask = project.tasks.named(makeTaskName(settings.cleanInstallDirTaskPrefix, local))
4444
val shadowJar = project.tasks.named(SHADOW_JAR_TASK)
45+
val jarTask = project.tasks.named(JAR_TASK)
4546
val updateLibrariesTask = project.tasks.named(UPDATE_LIBRARIES_TASK)
4647

4748
project.tasks.register<Copy>(makeTaskName(settings.copyLibrariesTaskPrefix, local)) {
@@ -60,6 +61,7 @@ class InstallTasksConfigurator(
6061

6162
project.tasks.register<Copy>(makeTaskName(settings.installKernelTaskPrefix, local)) {
6263
dependsOn(cleanDirTask, shadowJar)
64+
mustRunAfter(jarTask)
6365
group = groupName
6466
from(shadowJar.get().outputs)
6567
into(mainInstallPath.localJarsDir)

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ tasks {
118118
addSingleValueFile("PUBLISHED_JUPYTER_API_VERSION", libs.versions.jupyterApi.get())
119119
}
120120

121+
whenTaskAdded {
122+
val task = this
123+
if (task is GenerateModuleMetadata && task.name == "generateMetadataFileForKernelPublication") {
124+
task.dependsOn(shadowJar.get())
125+
}
126+
}
127+
128+
dokkaHtmlMultiModule {
129+
mustRunAfter(shadowJar.get())
130+
}
131+
121132
publishDocs {
122133
docsRepoUrl.set(rootSettings.docsRepo)
123134
branchName.set("master")

docs/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,8 @@ Other options are resolving library descriptor from a local file or from remote
274274
- default - Default imports: dataframe and Lets-Plot libraries
275275
- [exposed](https://github.com/JetBrains/Exposed) - Kotlin SQL framework
276276
- [fuel](https://github.com/kittinunf/fuel) - HTTP networking library
277-
- [ggdsl](https://github.com/AndreiKingsley/lib-ggdsl) - Lets-plot and Dataframe ggdsl
278-
- [ggdsl-dataframe](https://github.com/AndreiKingsley/lib-ggdsl) - Kotlin Dataframe integration for ggdsl
277+
- [ggdsl](https://github.com/AndreiKingsley/lib-ggdsl) - Kotlin plotting DSL for Lets-Plot
279278
- [ggdsl-echarts](https://github.com/AndreiKingsley/lib-ggdsl) - Kotlin plotting DSL for Apache ECharts
280-
- [ggdsl-lets-plot](https://github.com/AndreiKingsley/lib-ggdsl) - Kotlin plotting DSL for Lets-Plot
281279
- [gral](https://github.com/eseifert/gral) - Java library for displaying plots
282280
- [jdsp](https://github.com/psambit9791/jDSP) - Java library for signal processing
283281
- [kalasim](https://www.kalasim.org) - Discrete event simulator

docs/compatibility.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,16 @@ which were used in this build.
2929
| 0.11.0.239 | 0.11.0-239 | 1.8.0 | 1.8.0 | 1.8.0 | 1.8 | 1.8.0-1.0.8 |
3030
| 0.11.0.240 | 0.11.0-240 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
3131
| 0.11.0.248 | 0.11.0-248 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
32+
| 0.11.0.302 | 0.11.0-302 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
33+
| 0.11.0.311 | 0.11.0-311 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
34+
| 0.11.0.312 | 0.11.0-312 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
35+
| 0.11.0.314 | 0.11.0-314 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
36+
| 0.11.0.315 | 0.11.0-315 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
37+
| 0.11.0.316 | 0.11.0-316 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
38+
| 0.11.0.317 | 0.11.0-317 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
39+
| 0.11.0.318 | 0.11.0-318 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
40+
| 0.11.0.319 | 0.11.0-319 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
41+
| 0.11.0.320 | 0.11.0-320 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
42+
| 0.11.0.321 | 0.11.0-321 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
43+
| 0.11.0.322 | 0.11.0-322 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |
44+
| 0.11.0.323 | 0.11.0-323 | 1.8.20-Beta | 1.8.20-Beta | 1.8.20-Beta | 1.8 | 1.8.20-Beta-1.0.9 |

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ librariesRepoUserAndName=Kotlin/kotlin-jupyter-libraries
1818
# Workaround for https://github.com/Kotlin/dokka/issues/1405
1919
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m -Xmx2048m
2020

21+
org.gradle.java.installations.auto-detect=false
22+
2123
# Turn off README check when running check task
2224
skipReadmeCheck=false
2325

0 commit comments

Comments
 (0)