-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (73 loc) · 2.96 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
85
86
87
88
89
90
description = "java library to manage the data flow in IIoT context"
group = 'net.rossonet.beacon'
version = '0.1.0'
ext {
sourceCompatibility = 1.8
ossrhPassword = System.getenv('OSSRH_PASSWORD')
}
repositories {
mavenCentral()
jcenter()
}
apply plugin: 'eclipse'
task eclipseClosedDependencies {}
task eclipseClosedDependencies_ {}
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
task view { doLast { println "Working on project ${project.name} [ ${project.description} ]" } }
task theiaIdeBackend(type: Exec) {
workingDir "./"
commandLine 'docker', 'run', '--init', '--rm', '-p', '3000:3000', '-d', '-v', "${projectDir}:/home/project:cached", 'rossonet/theia-ide:latest'
}
task theiaIdeBackendNoCached(type: Exec) {
workingDir "./"
commandLine 'docker', 'run', '--init', '--rm', '-p', '3000:3000', '-d', '-v', "${projectDir}:/home/project", 'rossonet/theia-ide:latest'
}
task theiaIdeBackendNoVolume(type: Exec) {
workingDir "./"
commandLine 'docker', 'run', '--init', '--rm', '-p', '3000:3000', '-d', '--name', "docker-ide-${project.name}", 'rossonet/theia-ide:latest'
}
task theiaIdeBackendCopy(type: Exec) {
theiaIdeBackendCopy.dependsOn("theiaIdeBackendNoVolume")
workingDir "./"
commandLine 'docker', 'cp', '.', "docker-ide-${project.name}:/home/project/"
}
task theiaIdeBackendStart(type: Exec) {
description 'Run Theia IDE container with docker'
theiaIdeBackendStart.dependsOn("theiaIdeBackendCopy")
group "Theia IDE on Docker Container"
workingDir "./"
commandLine 'docker', 'exec', '-u', 'root', "docker-ide-${project.name}", '/bin/chown', '-R', 'theia:theia', '/home/project'
doLast { println "\n\n*** You can find the Theia IDE at http://localhost:3000 ***" }
doLast { println "To shutdown the IDE:\ndocker stop docker-ide-${project.name}\n- save your work on repository before!\n\n" }
}
task printTheiaIdeBackendDockerCommand(type: Exec) {
workingDir "./"
commandLine 'echo', 'docker', 'run', '--init', '-p', '3000:3000', '-d', '--name', "docker-ide-${project.name}", 'rossonet/theia-ide:latest'
}
task theiaIdeLocalBrowser(type: Exec) {
group "Theia IDE on Docker Container"
description 'Open browser to local Theia IDE'
workingDir "./"
commandLine 'xdg-open', 'http://localhost:3000'
}
task generateBeaconctlShadowJar {
group "build NiFi"
description 'Build beaconctl as shadow jar -fat jar-'
dependsOn(":beacon-beaconctl:shadowJar")
}
task generateTemplateNifiPlugin {
group "build NiFi"
description 'Build Template plugin, beacon-template-nifi-processor and beacon-template-nifi-service, in nar format'
dependsOn(":beacon-template-nifi-processor:nar")
dependsOn(":beacon-template-nifi-service:nar")
}
task generateOpcUaNifiPlugin {
group "build NiFi"
description 'Build OPC UA plugin in nar format'
dependsOn(":beacon-nifi-opcua-service-and-processor:nar")
}