-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (70 loc) · 2.95 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
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'eclipse'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
mainClassName="org.naarani.ecantonchiro.Run"
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
tasks.distTar.enabled = false
tasks.distZip.enabled = false
dependencies {
compile group: 'log4j', name: 'log4j', version:'1.2.17'
compile group: 'com.jcraft', name: 'jsch', version:'0.1.54'
compile group: 'org.apache.jclouds', name: 'jclouds-core', version:'2.0.1'
compile group: 'org.apache.jclouds.provider', name: 'digitalocean2', version:'2.0.1'
// https://mvnrepository.com/artifact/org.apache.jclouds.driver/jclouds-sshj
compile group: 'org.apache.jclouds.driver', name: 'jclouds-sshj', version: '2.0.1'
// https://mvnrepository.com/artifact/org.apache.jclouds.driver/jclouds-slf4j
//compile group: 'org.apache.jclouds.driver', name: 'jclouds-slf4j', version: '2.0.1'
// https://mvnrepository.com/artifact/org.apache.jclouds.driver/jclouds-log4j
compile group: 'org.apache.jclouds.driver', name: 'jclouds-log4j', version: '2.0.1'
// https://mvnrepository.com/artifact/com.google.inject/guice
compile group: 'com.google.inject', name: 'guice', version: '4.1.0'
// https://mvnrepository.com/artifact/com.google.inject.extensions/guice-assistedinject
compile group: 'com.google.inject.extensions', name: 'guice-assistedinject', version: '4.1.0'
// https://mvnrepository.com/artifact/net.sf.jopt-simple/jopt-simple
compile group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '5.0.3'
// https://mvnrepository.com/artifact/com.esotericsoftware.yamlbeans/yamlbeans
compile group: 'com.esotericsoftware.yamlbeans', name: 'yamlbeans', version: '1.11'
// https://mvnrepository.com/artifact/org.yaml/snakeyaml
// compile group: 'org.yaml', name: 'snakeyaml', version: '1.18'
compile fileTree(dir: 'lib', include: ['*.jar'])
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
// https://mvnrepository.com/artifact/com.hubspot.jinjava/jinjava
compile group: 'com.hubspot.jinjava', name: 'jinjava', version: '2.2.0'
testCompile "junit:junit:4.12"
}
sourceSets {
test {
java.srcDirs = ['test']
}
main {
java {
srcDirs = ['core', 'jclouds', 'migrationInProgress']
}
}
}
jar.doFirst {
// exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
manifest{
attributes(
'Specification-Version': version.replace('-SNAPSHOT', '')
, 'Implementation-Version': version
, 'Class-Path': configurations.compile.collect { 'lib/' + it.getName() }.join(' ')
, 'Main-Class': 'org.naarani.ecantonchiro.Run'
)
}
}
task jarWithLib(type: Sync){
dependsOn assemble
def dirName = "build/libs/lib"
file(dirName).mkdirs()
from configurations.runtime
into 'build/libs/lib'
}