-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.4 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Copyright (c) Dell Inc., or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
apply plugin: "java"
apply plugin: "scala"
apply plugin: 'application'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
archivesBaseName = 'pravega-spark-connector-examples'
mainClassName = "io.pravega.example.spark.StreamPravegaToConsole"
repositories {
mavenLocal()
if (findProperty("repositoryUrl")) {
maven {
url findProperty("repositoryUrl")
}
}
else {
jcenter()
mavenCentral()
maven { url "https://repository.apache.org/snapshots" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://oss.jfrog.org/jfrog-dependencies" }
}
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = ["-target:jvm-1.8"]
}
dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
compile group: 'org.scala-lang', name: 'scala-reflect', version: scalaVersion
compile group: 'org.scala-lang', name: 'scala-compiler', version: scalaVersion
compileOnly group: 'org.apache.spark', name: 'spark-sql_2.12', version: sparkVersion
}