1+ plugins {
2+ id ' java'
3+ id ' application'
4+ }
5+
6+ /**
7+ * Project
8+ */
9+ group ' org.code13k'
10+ version ' 0.1.0-alpha.1'
11+ repositories {
12+ jcenter()
13+ }
14+ dependencies {
15+ testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
16+
17+ // Log
18+ compile group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
19+ compile group : ' ch.qos.logback' , name : ' logback-core' , version : ' 1.2.3'
20+ compile group : ' ch.qos.logback' , name : ' logback-classic' , version : ' 1.2.3'
21+ compile group : ' ch.qos.logback' , name : ' logback-access' , version : ' 1.2.3'
22+
23+ // Log for telegram
24+ compile group : ' com.github.paolodenti' , name : ' telegram-logback' , version : ' 1.2.0'
25+
26+ // Log for slack
27+ compile group : ' com.github.maricn' , name : ' logback-slack-appender' , version : ' 1.4.0'
28+
29+ // Java Compiler (For Logback)
30+ compile group : ' org.codehaus.janino' , name : ' janino' , version : ' 3.0.8'
31+
32+ // SnakeYAML (YAML Library)
33+ compile group : ' org.yaml' , name : ' snakeyaml' , version : ' 1.21'
34+
35+ // Gson (Json Library)
36+ compile group : ' com.google.code.gson' , name : ' gson' , version : ' 2.8.5'
37+
38+ // Vert.x (Http Library)
39+ compile group : ' io.vertx' , name : ' vertx-core' , version : ' 3.5.3'
40+ compile group : ' io.vertx' , name : ' vertx-web' , version : ' 3.5.3'
41+ compile group : ' io.vertx' , name : ' vertx-web-client' , version : ' 3.5.3'
42+ compile group : ' io.vertx' , name : ' vertx-codegen' , version : ' 3.5.3'
43+
44+ // Util
45+ compile group : ' org.apache.commons' , name : ' commons-lang3' , version : ' 3.7'
46+ compile group : ' commons-io' , name : ' commons-io' , version : ' 2.6'
47+ compile group : ' commons-codec' , name : ' commons-codec' , version : ' 1.11'
48+ compile group : ' com.google.guava' , name : ' guava' , version : ' 26.0-jre'
49+ }
50+
51+ /**
52+ * Java Plugin
53+ */
54+ sourceCompatibility = 1.8
55+ targetCompatibility = 1.8
56+ jar {
57+ baseName = ' code13k-zeroproxy'
58+ manifest {
59+ attributes(
60+ ' Implementation-Title' : ' Code13k ZeroProxy' ,
61+ ' Implementation-Version' : version,
62+ ' Main-Class' : ' org.code13k.zeroproxy.Main'
63+ )
64+ }
65+ from {
66+ configurations. runtime. collect {
67+ it. isDirectory() ? it : zipTree(it)
68+ }
69+ configurations. compile. collect {
70+ it. isDirectory() ? it : zipTree(it)
71+ }
72+ }
73+ exclude ' META-INF/*.RSA' , ' META-INF/*.SF' , ' META-INF/*.DSA'
74+ }
75+ compileJava {
76+ options. encoding = ' UTF-8'
77+ options. compilerArgs << " -Xlint:deprecation"
78+ }
79+ compileTestJava {
80+ options. encoding = ' UTF-8'
81+ options. compilerArgs << " -Xlint:deprecation"
82+ }
83+
84+ /**
85+ * Application Plugin
86+ */
87+ mainClassName = ' org.code13k.zeroproxy.Main'
88+
89+ /**
90+ * Custom
91+ */
92+ task runJar (dependsOn : jar) {
93+ doLast {
94+ javaexec {
95+ main = " -jar"
96+ args = [jar. archivePath]
97+ }
98+ }
99+ }
0 commit comments