Skip to content

Commit 236ce82

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

18 files changed

+91
-15
lines changed

Diff for: build-plugin/common-dependencies/build.gradle.kts

+10-1
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

Diff for: build-plugin/plugin-versions-plugin/build.gradle.kts

+10-1
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

Diff for: build-plugin/plugin-versions-plugin/settings.gradle.kts

+4
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") {

Diff for: build-plugin/settings.gradle.kts

+4-1
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") {

Diff for: build-plugin/src/build/BuildSettingsExtension.kt

+2-1
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

Diff for: build-plugin/src/build/InstallTasksConfigurator.kt

+2
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)

Diff for: build.gradle.kts

+11
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")

Diff for: docs/README.md

+1-3
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

Diff for: docs/compatibility.md

+13
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 |

Diff for: gradle.properties

+2
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

Diff for: gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jupyterNotebooksParser = "0.1.0-dev-1"
1313

1414
ktlintGradle = "11.0.0"
1515
ktlint = "0.45.2"
16-
publishPlugin = "0.0.61-dev-33"
16+
publishPlugin = "1.8.10-dev-40"
1717
pluginPublishPlugin = "0.21.0"
1818
versionsPlugin = "0.44.0"
1919

Diff for: gradle/wrapper/gradle-wrapper.jar

852 Bytes
Binary file not shown.

Diff for: gradle/wrapper/gradle-wrapper.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

Diff for: gradlew

+8-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac

Diff for: gradlew.bat

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
2828
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

Diff for: jupyter-lib/kotlin-jupyter-api-gradle-plugin/build.gradle.kts

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ dependencies {
2929
testImplementation(projects.apiAnnotations)
3030
}
3131

32+
tasks.whenTaskAdded {
33+
val task = this
34+
if (task.name == "generateMetadataFileForPluginMavenPublication") {
35+
task.setMustRunAfter(tasks.matching { it.name == "publishPluginJar" || it.name == "publishPluginJavaDocsJar" })
36+
}
37+
}
38+
3239
CreateResourcesTask.register(project, "saveVersion", tasks.processResources) {
3340
addSingleValueFile("VERSION", rootSettings.mavenVersion)
3441
addSingleValueFile("KOTLIN_VERSION", rootProject.defaultVersionCatalog.versions.devKotlin)

Diff for: jupyter-lib/test-kit/build.gradle.kts

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ dependencies {
1616
implementation(libs.test.kotlintest.assertions)
1717
}
1818

19+
val rootShadowJar = ':' + build.SHADOW_JAR_TASK
20+
1921
buildSettings {
2022
withLanguageLevel(rootSettings.kotlinLanguageLevel)
21-
withTests()
23+
withTests {
24+
mustRunAfter(rootShadowJar)
25+
}
26+
}
27+
28+
tasks.dokkaHtmlPartial {
29+
mustRunAfter(rootShadowJar)
2230
}
2331

2432
kotlinPublications {

Diff for: settings.gradle.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
rootProject.name = "kotlin-jupyter-kernel"
44

5-
enableFeaturePreview("VERSION_CATALOGS")
5+
plugins {
6+
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
7+
}
8+
69
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
710

811
includeBuild("build-plugin")

0 commit comments

Comments
 (0)