-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address the review comments Also adjusted the build so it was connected to the main top level build (resulted in removing quite a bit of the gradle build that really wasn't needed here) Converted to Kotlin format (hopefully corectly) Signed-off-by: MBWhite <[email protected]>
- Loading branch information
Showing
27 changed files
with
117 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ out/** | |
*.iws | ||
.vscode | ||
.pmdCache | ||
|
||
*/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
spark-warehouse | ||
derby.log | ||
_apps | ||
_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ubstrait-spark/build-logic/src/main/groovy/buildlogic.java-application-conventions.gradle
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...les/substrait-spark/build-logic/src/main/groovy/buildlogic.java-common-conventions.gradle
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...es/substrait-spark/build-logic/src/main/groovy/buildlogic.java-library-conventions.gradle
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
plugins { | ||
// Apply the application plugin to add support for building a CLI application in Java. | ||
id("java") | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.apache.spark:spark-core_2.12:3.5.1") | ||
implementation("io.substrait:spark:0.36.0") | ||
implementation("io.substrait:core:0.36.0") | ||
implementation("org.apache.spark:spark-sql_2.12:3.5.1") | ||
|
||
// For a real Spark application, these would not be required since they would be in the Spark server classpath | ||
runtimeOnly("org.apache.spark:spark-core_2.12:3.5.1") | ||
runtimeOnly("org.apache.spark:spark-hive_2.12:3.5.1") | ||
|
||
} | ||
|
||
tasks.jar { | ||
isZip64 = true | ||
exclude ("META-INF/*.RSA") | ||
exclude ("META-INF/*.SF") | ||
exclude ("META-INF/*.DSA") | ||
|
||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
manifest.attributes["Main-Class"] = "io.substrait.examples.App" | ||
from(configurations.runtimeClasspath.get().map({ if (it.isDirectory) it else zipTree(it) })) | ||
|
||
} | ||
|
||
tasks.named<Test>("test") { | ||
// Use JUnit Platform for unit tests. | ||
useJUnitPlatform() | ||
} | ||
|
||
java { | ||
toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
7 changes: 0 additions & 7 deletions
7
examples/substrait-spark/gradle/wrapper/gradle-wrapper.properties
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.