-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (64 loc) · 1.48 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
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "6.1.0"
id "io.freefair.lombok" version "6.1.0"
id 'maven-publish'
}
group 'com.github.Aseeef'
version '1.0.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://jitpack.io'
}
}
dependencies {
compileOnly('org.apache.httpcomponents:httpclient:4.5.13')
}
configurations.all {
resolutionStrategy {
cacheDynamicVersionsFor 5*60, 'seconds'
cacheChangingModulesFor 0, 'minutes'
}
}
// Force character encoding in case the workspace was not set up correctly
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
jvmArgs '-Dfile.encoding=UTF-8'
}
shadowJar {
archiveFileName = project.name + ".jar"
destinationDirectory = file("build")
}
sourceSets {
main.java.srcDirs = ['src/main/java']
main.resources.srcDirs = ['src/main/resources']
}
javadoc {
source = sourceSets.main.allJava
options.tags = [ "apiNote" ]
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.github.Aseeef'
artifactId = 'AseefianProxyPool'
version = project.version
from components.java
}
}
}