generated from barrelsofdata/spark-boilerplate
Provide jvm args for test
This commit is contained in:
parent
1d4662b273
commit
1d77223c6a
@ -29,7 +29,7 @@ tasks.register<JavaExec>("scalaTest") {
|
|||||||
dependsOn("testClasses")
|
dependsOn("testClasses")
|
||||||
mainClass = "org.scalatest.tools.Runner"
|
mainClass = "org.scalatest.tools.Runner"
|
||||||
args = listOf("-R", "build/classes/scala/test", "-o")
|
args = listOf("-R", "build/classes/scala/test", "-o")
|
||||||
jvmArgs = listOf("--add-exports=java.base/sun.nio.ch=ALL-UNNAMED") // https://lists.apache.org/thread/p1yrwo126vjx5tht82cktgjbmm2xtpw9
|
jvmArgs = listOf("-Xms128m", "-Xmx512m", "-XX:MetaspaceSize=300m", "-ea", "--add-exports=java.base/sun.nio.ch=ALL-UNNAMED") // https://lists.apache.org/thread/p1yrwo126vjx5tht82cktgjbmm2xtpw9
|
||||||
classpath = sourceSets.test.get().runtimeClasspath
|
classpath = sourceSets.test.get().runtimeClasspath
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,6 +41,7 @@ tasks.withType<Jar> {
|
|||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = "com.barrelsofdata.sparkexamples.Driver"
|
attributes["Main-Class"] = "com.barrelsofdata.sparkexamples.Driver"
|
||||||
}
|
}
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
from (configurations.runtimeClasspath.get().map { if (it.isDirectory()) it else zipTree(it) })
|
from (configurations.runtimeClasspath.get().map { if (it.isDirectory()) it else zipTree(it) })
|
||||||
archiveFileName.set("${archiveBaseName.get()}-${project.version}.${archiveExtension.get()}")
|
archiveFileName.set("${archiveBaseName.get()}-${project.version}.${archiveExtension.get()}")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user