generated from kbase/kbase-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
33 lines (27 loc) · 901 Bytes
/
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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* To learn more about Gradle by exploring our Samples at https://docs.gradle.org/8.7/samples
*/
plugins {
id 'java'
}
repositories {
mavenCentral()
}
def hadoopAwsVersion = System.getenv('HADOOP_AWS_VER')
def deltaSparkVersion = System.getenv('DELTA_SPARK_VER')
def scalaVersion = System.getenv('SCALA_VER')
def postgresVersion = System.getenv('POSTGRES_JDBC_VER')
dependencies {
implementation "org.apache.hadoop:hadoop-aws:$hadoopAwsVersion"
implementation "io.delta:delta-spark_${scalaVersion}:$deltaSparkVersion"
implementation "org.postgresql:postgresql:$postgresVersion"
}
task downloadDependencies(type: Copy) {
def jarDir = file(System.getenv('GRADLE_JARS_DIR'))
from configurations.compileClasspath
into jarDir
}
build.dependsOn downloadDependencies