File tree 6 files changed +19
-17
lines changed
6 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 36
36
restore-keys : |
37
37
${{ runner.os }}-gradle-
38
38
39
- - name : Build the plugins first
40
- run : >
41
- ./gradlew
42
- updateBootstrapVersion
43
-
44
39
- name : Build with Gradle
45
40
uses : gradle/gradle-build-action@v2
46
41
with :
Original file line number Diff line number Diff line change 3
3
import Projects.compilerPlugin
4
4
import Projects.gradlePlugin
5
5
import com.github.gmazzo.buildconfig.BuildConfigExtension
6
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
6
7
7
8
8
9
buildscript {
@@ -126,14 +127,23 @@ allprojects {
126
127
}
127
128
128
129
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
-
136
130
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
+ }
137
147
extensions.findByType<BuildConfigExtension >()?.apply {
138
148
val projectVersion = Versions .project
139
149
val groupId = Versions .groupID
Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ kotlin.daemon.jvmargs=-Xmx8g
2
2
org.gradle.jvmargs =-Xmx8g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
3
3
mavenCentralUsername =dummy
4
4
mavenCentralPassword =dummy
5
-
6
5
GROUP =org.jetbrains.kotlinx.spark
7
-
8
6
# Controls the spark and scala version for the entire project
9
7
# can also be defined like ./gradlew -Pspark=X.X.X -Pscala=X.X.X build
10
8
spark =3.5.1
11
9
scala =2.13.13
12
- # scala=2.12.19
10
+ # scala=2.12.19
13
11
skipScalaOnlyDependent =false
14
12
sparkConnect =false
15
-
16
13
org.gradle.caching =true
17
14
org.gradle.parallel =false
18
15
# 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"
35
35
include(" scala-helpers" )
36
36
include(" scala-tuples-in-kotlin" )
37
37
include(" kotlin-spark-api" )
38
- include(" jupyter" )
38
+ // include("jupyter")
39
39
include(" examples" )
40
40
include(" compiler-plugin" )
41
41
include(" gradle-plugin" )
You can’t perform that action at this time.
0 commit comments