File tree Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 33import Projects.compilerPlugin
44import Projects.gradlePlugin
55import com.github.gmazzo.buildconfig.BuildConfigExtension
6+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
67
78
89buildscript {
@@ -126,14 +127,23 @@ allprojects {
126127}
127128
128129subprojects {
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
Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ kotlin.daemon.jvmargs=-Xmx8g
22org.gradle.jvmargs =-Xmx8g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
33mavenCentralUsername =dummy
44mavenCentralPassword =dummy
5-
65GROUP =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
108spark =3.5.1
119scala =2.13.13
12- # scala=2.12.19
10+ # scala=2.12.19
1311skipScalaOnlyDependent =false
1412sparkConnect =false
15-
1613org.gradle.caching =true
1714org.gradle.parallel =false
1815# kotlin.incremental.useClasspathSnapshot=true
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ rootProject.name = "kotlin-spark-api-parent_$versions"
3535include(" scala-helpers" )
3636include(" scala-tuples-in-kotlin" )
3737include(" kotlin-spark-api" )
38- include(" jupyter" )
38+ // include("jupyter")
3939include(" examples" )
4040include(" compiler-plugin" )
4141include(" gradle-plugin" )
You can’t perform that action at this time.
0 commit comments