-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
84 lines (69 loc) · 2.12 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
group 'com.cameraforensics'
version '6.2.4.0'
apply plugin: 'java'
subprojects {
group 'com.cameraforensics'
version '6.2.4.0'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
maven { url "${artifactoryUrl}/libs-release"}
mavenCentral()
}
configurations {
provided
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
}
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar
archives javadocJar
}
dependencies {
provided 'org.elasticsearch:elasticsearch:6.2.4'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.9.5'
}
// task prePrepare(type: Copy, dependsOn:build) {
// from {
// [new File("build/libs/${baseName}-${version}.jar"), new File("build/resources/main/plugin-descriptor.properties")]
// }
// into "${buildDir}/elasticsearch"
// }
//
//
// task prepare(type: Zip, dependsOn:prePrepare) {
// from "${buildDir}/elasticsearch"
// // new File(""){
// // [new File("build/libs/${baseName}-${version}.jar"), new File("build/resources/main/plugin-descriptor.properties")]
// // }
// }
//
// task prepare(type: Zip, dependsOn:build) {
// from {
// [new File("build/libs/${baseName}-${version}.jar"), new File("build/resources/main/plugin-descriptor.properties")]
// }
// }
}