-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (60 loc) · 1.41 KB
/
build.gradle
File metadata and controls
71 lines (60 loc) · 1.41 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
plugins {
id 'java'
id 'idea'
id 'maven'
}
group 'com.github.raxixor'
version '1.1.4'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
compileJava {
options.compilerArgs << "-XDignore.symbol.file=true"
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
options.encoding = 'UTF-8'
}
repositories {
jcenter()
maven {
url 'https://jitpack.io'
// credentials { username authToken }
}
mavenCentral()
}
dependencies {
compile 'net.dv8tion:JDA:+'
compile 'org.slf4j:slf4j-simple:+'
compile 'org.apache.httpcomponents:httpcore:+'
compile 'org.apache.httpcomponents:httpclient:+'
compile 'com.google.code.gson:gson:+'
compile 'com.google.guava:guava:+'
compile 'com.github.raxixor:SimpleLog:+'
compile group: 'org.apache.commons', name: 'commons-text', version: '1.1'
}
jar {
manifest {
attributes 'Implementation-Title': 'JDAddons',
'Implementation-Version': version
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}