-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (53 loc) · 1.39 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
group 'by.cortwave'
version '0.1.0'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.2"
}
}
repositories {
mavenCentral()
}
apply plugin: 'kotlin'
apply plugin: 'maven'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.2"
compile "org.apache.spark:spark-core_2.10:2.0.0"
compile "com.datastax.spark:spark-cassandra-connector_2.10:2.0.0-M3"
compile "org.apache.spark:spark-sql_2.10:2.0.0"
testCompile "com.datastax.cassandra:cassandra-driver-core:3.1.0"
testCompile "org.testcontainers:testcontainers:1.1.5"
testCompile "junit:junit:4.12"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}