-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·69 lines (54 loc) · 1.87 KB
/
build.gradle
File metadata and controls
executable file
·69 lines (54 loc) · 1.87 KB
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
buildscript {
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/sponiro/gradle-plugins'
}
}
dependencies {
classpath group: 'de.fanero.gradle.plugin.nar', name: 'gradle-nar-plugin', version: '0.1'
}
}
apply plugin: 'idea'
description = 'NiFi Dynamic Script Executors'
allprojects {
apply plugin: 'java'
group = 'org.apache.nifi'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
}
}
def narProjects = subprojects - project(':nifi-sumo-common')
configure(narProjects) {
apply plugin: 'de.fanero.gradle.plugin.nar'
dependencies {
compile project(':nifi-sumo-common')
compile "org.apache.nifi:nifi-api:${nifiVersion}"
compile "org.apache.nifi:nifi-processor-utils:${nifiVersion}"
testCompile "org.apache.nifi:nifi-mock:${nifiVersion}"
testCompile "commons-io:commons-io:2.4"
testCompile "junit:junit:4.+"
testCompile "org.slf4j:slf4j-simple:1.7.12"
}
}
task deploy(dependsOn: 'nar', type: Copy) {
description 'Deploys assembled "nar" archive to Apache NiFi installation. Will call "nar" task to assemble nar archive.'
if (project.hasProperty('nifi_home')) {
from 'build/libs/'
into nifi_home + '/lib'
include ('*.nar')
println("Deploying '" + project.name + "' to " + (nifi_home + '/lib'))
}
else {
if (gradle.startParameter.taskNames.toString().contains('deploy')){
throw new java.lang.IllegalArgumentException("Failed to determine the value of 'nifi_home' property. Possible reasons: " +
"Property is not defined. You can define it in either 'gradle.properties' file or via command line argument 'gradlew deploy -Pnifi_home=/foo/bar/nifi'.")
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}