-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
87 lines (70 loc) · 1.85 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
/**
build.gradle
Copyright 2014 Crown copyright (c)
Land Information New Zealand and the New Zealand Government.
All rights reserved
This program is released under the terms of the new BSD license. See the
LICENSE file for more information.
*/
plugins {
id "com.linkedin.python-sdist" version "0.3.9"
}
version = 1.0
repositories {
mavenCentral()
pyGradlePyPi()
}
dependencies {
python 'pypi:requests:2.9.1'
python 'net.launchpad:koordinates:1.0+'
}
task koordinates (type: Exec){
workingDir '.'
commandLine 'pip3','install','koordinates'
}
task list {
FileCollection collection = files(
'__init__.py',
'ReblockerUI.py',
'LayerReader.py',
'Config.py',
'Const.py',
'config.ini',
'CropRegions.*'
)
collection.each { File file ->
println file.name
}
}
task copy1(type: Copy) {
from('.') {
include '__init__.py'
include 'ReblockerUI.py'
include 'LayerReader.py'
include 'Config.py'
include 'Const.py'
include 'config.ini'
include 'CropRegions.*'
}
into "/home/${userHomeDir}/package/reblocker/"
}
task copy2(type: Copy) {
from ("/home/${userHomeDir}/git/LDS/LDSAPI/KPCInterface") {
include '__init__.py'
include 'AuthReader.py'
include 'KPCUploader.py'
include 'KPCAPI.py'
}
into "/home/${userHomeDir}/package/reblocker/KPCInterface"
}
task copyall{
dependsOn copy1, copy2
}
task zip(dependsOn: copyall, type: Zip){
from ("/home/${userHomeDir}/package/reblocker/")
//destinationDir = new File("/home/${userHomeDir}/package/reblocker")
//destinationDir = new File("/home/${userHomeDir}/package/reblocker")
//println zip.archiveName
//println relativePath(zip.destinationDir)
println relativePath(zip.archivePath)
}