-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (48 loc) · 1.18 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
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
apply plugin: 'java'
apply plugin: 'distribution'
// ** JVM source/target settings ** //
sourceCompatibility = 1.8
targetCompatibility = 1.8
// ** Project Settings ** //
version = '1.1'
def buildTime = new Date().format("yyyy-MM-dd HH:mm")
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'commons-httpclient:commons-httpclient:3.1'
compile 'org.slf4j:slf4j-log4j12:1.7.25'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.2.0'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
}
jar {
manifest {
attributes( 'Main-Class': 'ntlmproxy.Main',
'Specification-Title': 'NTLM Proxy',
'Specification-Version': version,
'X-Build-Time': buildTime )
}
}
shadowJar {
baseName = 'NTLMProxy'
classifier = null
version = null
}
distributions {
main {
baseName = 'NTLMProxy'
contents {
from( "${buildDir}/libs" ) {
include 'NTLMProxy.jar'
}
}
}
}
distZip.dependsOn shadowJar
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}