File tree 18 files changed +91
-15
lines changed
kotlin-jupyter-api-gradle-plugin
18 files changed +91
-15
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ sourceSets {
27
27
}
28
28
}
29
29
30
+ val myJvmTarget = libs.versions.jvmTarget.get()
31
+ val myJvmTargetInt = myJvmTarget.substringAfter(' .' ).toInt()
32
+
30
33
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
31
34
kotlinOptions {
32
35
apiVersion = " 1.4"
@@ -35,7 +38,13 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
35
38
@Suppress(" SuspiciousCollectionReassignment" )
36
39
freeCompilerArgs + = listOf (" -opt-in=kotlin.RequiresOptIn" )
37
40
38
- jvmTarget = libs.versions.jvmTarget.get()
41
+ this .jvmTarget = myJvmTarget
42
+ }
43
+ }
44
+
45
+ java {
46
+ toolchain {
47
+ languageVersion.set(JavaLanguageVersion .of(myJvmTargetInt))
39
48
}
40
49
}
41
50
Original file line number Diff line number Diff line change @@ -21,9 +21,18 @@ dependencies {
21
21
}
22
22
}
23
23
24
+ val myJvmTarget = libs.versions.jvmTarget.get()
25
+ val myJvmTargetInt = myJvmTarget.substringAfter(' .' ).toInt()
26
+
24
27
tasks.withType<KotlinCompile > {
25
28
kotlinOptions {
26
- jvmTarget = libs.versions.jvmTarget.get()
29
+ jvmTarget = myJvmTarget
30
+ }
31
+ }
32
+
33
+ java {
34
+ toolchain {
35
+ languageVersion.set(JavaLanguageVersion .of(myJvmTargetInt))
27
36
}
28
37
}
29
38
Original file line number Diff line number Diff line change 2
2
3
3
rootProject.name = " plugin-versions"
4
4
5
+ plugins {
6
+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version(" 0.4.0" )
7
+ }
8
+
5
9
dependencyResolutionManagement {
6
10
versionCatalogs {
7
11
create(" libs" ) {
Original file line number Diff line number Diff line change 1
1
@file:Suppress(" UnstableApiUsage" )
2
2
3
- enableFeaturePreview(" VERSION_CATALOGS" )
4
3
enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
5
4
6
5
rootProject.name = " build"
7
6
7
+ plugins {
8
+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version(" 0.4.0" )
9
+ }
10
+
8
11
dependencyResolutionManagement {
9
12
versionCatalogs {
10
13
create(" libs" ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import org.gradle.kotlin.dsl.withType
15
15
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
16
16
17
17
class BuildSettingsExtension (private val project : Project ) {
18
- fun withTests () {
18
+ fun withTests (configure : Test .() -> Unit = {} ) {
19
19
val deps = project.defaultVersionCatalog.dependencies
20
20
21
21
project.dependencies {
@@ -30,6 +30,7 @@ class BuildSettingsExtension(private val project: Project) {
30
30
testLogging {
31
31
events(" passed" , " skipped" , " failed" )
32
32
}
33
+ configure()
33
34
}
34
35
}
35
36
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class InstallTasksConfigurator(
42
42
val groupName = if (local) LOCAL_INSTALL_GROUP else DISTRIBUTION_GROUP
43
43
val cleanDirTask = project.tasks.named(makeTaskName(settings.cleanInstallDirTaskPrefix, local))
44
44
val shadowJar = project.tasks.named(SHADOW_JAR_TASK )
45
+ val jarTask = project.tasks.named(JAR_TASK )
45
46
val updateLibrariesTask = project.tasks.named(UPDATE_LIBRARIES_TASK )
46
47
47
48
project.tasks.register<Copy >(makeTaskName(settings.copyLibrariesTaskPrefix, local)) {
@@ -60,6 +61,7 @@ class InstallTasksConfigurator(
60
61
61
62
project.tasks.register<Copy >(makeTaskName(settings.installKernelTaskPrefix, local)) {
62
63
dependsOn(cleanDirTask, shadowJar)
64
+ mustRunAfter(jarTask)
63
65
group = groupName
64
66
from(shadowJar.get().outputs)
65
67
into(mainInstallPath.localJarsDir)
Original file line number Diff line number Diff line change @@ -118,6 +118,17 @@ tasks {
118
118
addSingleValueFile(" PUBLISHED_JUPYTER_API_VERSION" , libs.versions.jupyterApi.get())
119
119
}
120
120
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
+
121
132
publishDocs {
122
133
docsRepoUrl.set(rootSettings.docsRepo)
123
134
branchName.set(" master" )
Original file line number Diff line number Diff line change @@ -274,10 +274,8 @@ Other options are resolving library descriptor from a local file or from remote
274
274
- default - Default imports: dataframe and Lets-Plot libraries
275
275
- [ exposed] ( https://github.com/JetBrains/Exposed ) - Kotlin SQL framework
276
276
- [ 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
279
278
- [ 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
281
279
- [ gral] ( https://github.com/eseifert/gral ) - Java library for displaying plots
282
280
- [ jdsp] ( https://github.com/psambit9791/jDSP ) - Java library for signal processing
283
281
- [ kalasim] ( https://www.kalasim.org ) - Discrete event simulator
Original file line number Diff line number Diff line change @@ -29,3 +29,16 @@ which were used in this build.
29
29
| 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 |
30
30
| 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 |
31
31
| 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 |
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ librariesRepoUserAndName=Kotlin/kotlin-jupyter-libraries
18
18
# Workaround for https://github.com/Kotlin/dokka/issues/1405
19
19
org.gradle.jvmargs =-XX:MaxMetaspaceSize=1024m -Xmx2048m
20
20
21
+ org.gradle.java.installations.auto-detect =false
22
+
21
23
# Turn off README check when running check task
22
24
skipReadmeCheck =false
23
25
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ jupyterNotebooksParser = "0.1.0-dev-1"
13
13
14
14
ktlintGradle = " 11.0.0"
15
15
ktlint = " 0.45.2"
16
- publishPlugin = " 0.0.61 -dev-33 "
16
+ publishPlugin = " 1.8.10 -dev-40 "
17
17
pluginPublishPlugin = " 0.21.0"
18
18
versionsPlugin = " 0.44.0"
19
19
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
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
4
5
zipStoreBase =GRADLE_USER_HOME
5
6
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 55
55
# Darwin, MinGW, and NonStop.
56
56
#
57
57
# (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
59
59
# within the Gradle project.
60
60
#
61
61
# You can find Gradle at https://github.com/gradle/gradle/.
80
80
esac
81
81
done
82
82
83
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
84
-
85
- APP_NAME=" Gradle"
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
86
85
APP_BASE_NAME=${0##*/ }
86
+ APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
87
87
88
88
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
89
DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
143
143
if ! " $cygwin " && ! " $darwin " && ! " $nonstop " ; then
144
144
case $MAX_FD in # (
145
145
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
146
148
MAX_FD=$( ulimit -H -n ) ||
147
149
warn " Could not query maximum file descriptor limit"
148
150
esac
149
151
case $MAX_FD in # (
150
152
' ' | soft) : ;; # (
151
153
* )
154
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155
+ # shellcheck disable=SC3045
152
156
ulimit -n " $MAX_FD " ||
153
157
warn " Could not set maximum file descriptor limit to $MAX_FD "
154
158
esac
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
26
26
27
27
set DIRNAME = %~dp0
28
28
if " %DIRNAME% " == " " set DIRNAME = .
29
+ @ rem This is normally unused
29
30
set APP_BASE_NAME = %~n0
30
31
set APP_HOME = %DIRNAME%
31
32
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ dependencies {
29
29
testImplementation(projects.apiAnnotations)
30
30
}
31
31
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
+
32
39
CreateResourcesTask .register(project, " saveVersion" , tasks.processResources) {
33
40
addSingleValueFile(" VERSION" , rootSettings.mavenVersion)
34
41
addSingleValueFile(" KOTLIN_VERSION" , rootProject.defaultVersionCatalog.versions.devKotlin)
Original file line number Diff line number Diff line change @@ -16,9 +16,17 @@ dependencies {
16
16
implementation(libs.test.kotlintest.assertions)
17
17
}
18
18
19
+ val rootShadowJar = ' :' + build.SHADOW_JAR_TASK
20
+
19
21
buildSettings {
20
22
withLanguageLevel(rootSettings.kotlinLanguageLevel)
21
- withTests()
23
+ withTests {
24
+ mustRunAfter(rootShadowJar)
25
+ }
26
+ }
27
+
28
+ tasks.dokkaHtmlPartial {
29
+ mustRunAfter(rootShadowJar)
22
30
}
23
31
24
32
kotlinPublications {
Original file line number Diff line number Diff line change 2
2
3
3
rootProject.name = " kotlin-jupyter-kernel"
4
4
5
- enableFeaturePreview(" VERSION_CATALOGS" )
5
+ plugins {
6
+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version(" 0.4.0" )
7
+ }
8
+
6
9
enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
7
10
8
11
includeBuild(" build-plugin" )
You can’t perform that action at this time.
0 commit comments