This repository was archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (61 loc) · 2.1 KB
/
build.gradle
File metadata and controls
77 lines (61 loc) · 2.1 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
70
71
72
73
74
75
76
77
apply plugin: 'java'
apply plugin: 'checkstyle'
group 'de.worldiety'
version '1.0'
sourceCompatibility = 12
repositories {
mavenCentral()
}
checkstyle {
maxErrors = 0
ignoreFailures = false
toolVersion '8.22'
config project.resources.text.fromUri("https://cdn.worldiety.org/worldiety/linting/checkstyle/style-latest.xml")
}
tasks.withType(Checkstyle) {
showViolations = true
checkstyleMain {
source 'src/main/java'
include '**/*.java'
ignoreFailures = false
classpath = files()
}
}
compileJava.dependsOn(checkstyleMain)
sourceSets {
main {
resources {
srcDirs "src/main/resources"
}
}
}
jar {
zip64 true
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes("Main-Class": "de.worldiety.autocd.Main")
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/org.jetbrains/annotations
compile group: 'org.jetbrains', name: 'annotations', version: '17.0.0'
// https://mvnrepository.com/artifact/com.github.docker-java/docker-java
compile group: 'com.puppycrawl.tools', name: 'checkstyle', version: '8.22'
compile group: 'com.github.docker-java', name: 'docker-java', version: '3.1.5'
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
// https://mvnrepository.com/artifact/io.kubernetes/client-java
//compile group: 'io.kubernetes', name: 'client-java', version: '6.0.1'
compile fileTree(dir: 'lib', include: ['*.jar'])
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'com.puppycrawl.tools', name: 'checkstyle', version: '8.22'
}