Skip to content

Commit

Permalink
small fixes, disabled jupyter module for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolanrensen committed Mar 25, 2024
1 parent 723152b commit 0db290a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Build the plugins first
run: >
./gradlew
updateBootstrapVersion
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
Expand Down
24 changes: 17 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Projects.compilerPlugin
import Projects.gradlePlugin
import com.github.gmazzo.buildconfig.BuildConfigExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile


buildscript {
Expand Down Expand Up @@ -126,14 +127,23 @@ allprojects {
}

subprojects {
// Adding the bootstraps directory to the repositories of the subprojects, so that
// the bootstrap version of compiler-plugin.jar can be found and used by the gradle-plugin
// without mavenLocal
repositories.flatDir {
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
}

afterEvaluate {
// Adding the bootstraps directory to the repositories of the subprojects, so that
// the bootstrap version of compiler-plugin.jar can be found and used by the gradle-plugin
// without mavenLocal
if (plugins.hasPlugin("org.jetbrains.kotlinx.spark.api")) {
repositories.flatDir {
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
}
tasks.withType<KotlinCompile> {
dependsOn(":compiler-plugin:updateBootstrapVersion")
dependsOn(":gradle-plugin:updateBootstrapVersion")
}
}

repositories.flatDir {
dirs("${project.rootDir.absolutePath}/gradle/bootstraps")
}
extensions.findByType<BuildConfigExtension>()?.apply {
val projectVersion = Versions.project
val groupId = Versions.groupID
Expand Down
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ kotlin.daemon.jvmargs=-Xmx8g
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
mavenCentralUsername=dummy
mavenCentralPassword=dummy

GROUP=org.jetbrains.kotlinx.spark

# Controls the spark and scala version for the entire project
# can also be defined like ./gradlew -Pspark=X.X.X -Pscala=X.X.X build
spark=3.5.1
scala=2.13.13
# scala=2.12.19
#scala=2.12.19
skipScalaOnlyDependent=false
sparkConnect=false

org.gradle.caching=true
org.gradle.parallel=false
#kotlin.incremental.useClasspathSnapshot=true
Binary file modified gradle/bootstraps/compiler-plugin.jar
Binary file not shown.
Binary file modified gradle/bootstraps/gradle-plugin.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rootProject.name = "kotlin-spark-api-parent_$versions"
include("scala-helpers")
include("scala-tuples-in-kotlin")
include("kotlin-spark-api")
include("jupyter")
//include("jupyter")
include("examples")
include("compiler-plugin")
include("gradle-plugin")
Expand All @@ -46,7 +46,7 @@ project(":scala-tuples-in-kotlin").name = "scala-tuples-in-kotlin_$scalaCompat"

// spark+scala dependent
project(":kotlin-spark-api").name = "kotlin-spark-api_$versions"
project(":jupyter").name = "jupyter_$versions"
//project(":jupyter").name = "jupyter_$versions"
project(":examples").name = "examples_$versions"

buildCache {
Expand Down

0 comments on commit 0db290a

Please sign in to comment.