Skip to content

Commit ffe14ef

Browse files
committed
small fixes, disabled jupyter module for now
1 parent 723152b commit ffe14ef

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

.github/workflows/build.yml

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ jobs:
3636
restore-keys: |
3737
${{ runner.os }}-gradle-
3838
39-
- name: Build the plugins first
40-
run: >
41-
./gradlew
42-
updateBootstrapVersion
43-
4439
- name: Build with Gradle
4540
uses: gradle/gradle-build-action@v2
4641
with:

build.gradle.kts

+17-7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import Projects.compilerPlugin
44
import Projects.gradlePlugin
55
import com.github.gmazzo.buildconfig.BuildConfigExtension
6+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
67

78

89
buildscript {
@@ -126,14 +127,23 @@ allprojects {
126127
}
127128

128129
subprojects {
129-
// Adding the bootstraps directory to the repositories of the subprojects, so that
130-
// the bootstrap version of compiler-plugin.jar can be found and used by the gradle-plugin
131-
// without mavenLocal
132-
repositories.flatDir {
133-
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
134-
}
135-
136130
afterEvaluate {
131+
// Adding the bootstraps directory to the repositories of the subprojects, so that
132+
// the bootstrap version of compiler-plugin.jar can be found and used by the gradle-plugin
133+
// without mavenLocal
134+
if (plugins.hasPlugin("org.jetbrains.kotlinx.spark.api")) {
135+
repositories.flatDir {
136+
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
137+
}
138+
tasks.withType<KotlinCompile> {
139+
dependsOn(":compiler-plugin:updateBootstrapVersion")
140+
dependsOn(":gradle-plugin:updateBootstrapVersion")
141+
}
142+
}
143+
144+
repositories.flatDir {
145+
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
146+
}
137147
extensions.findByType<BuildConfigExtension>()?.apply {
138148
val projectVersion = Versions.project
139149
val groupId = Versions.groupID

gradle.properties

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ kotlin.daemon.jvmargs=-Xmx8g
22
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
33
mavenCentralUsername=dummy
44
mavenCentralPassword=dummy
5-
65
GROUP=org.jetbrains.kotlinx.spark
7-
86
# Controls the spark and scala version for the entire project
97
# can also be defined like ./gradlew -Pspark=X.X.X -Pscala=X.X.X build
108
spark=3.5.1
119
scala=2.13.13
12-
# scala=2.12.19
10+
#scala=2.12.19
1311
skipScalaOnlyDependent=false
1412
sparkConnect=false
15-
1613
org.gradle.caching=true
1714
org.gradle.parallel=false
1815
#kotlin.incremental.useClasspathSnapshot=true

gradle/bootstraps/compiler-plugin.jar

-15 Bytes
Binary file not shown.

gradle/bootstraps/gradle-plugin.jar

1 Byte
Binary file not shown.

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ rootProject.name = "kotlin-spark-api-parent_$versions"
3535
include("scala-helpers")
3636
include("scala-tuples-in-kotlin")
3737
include("kotlin-spark-api")
38-
include("jupyter")
38+
//include("jupyter")
3939
include("examples")
4040
include("compiler-plugin")
4141
include("gradle-plugin")

0 commit comments

Comments
 (0)