This repository has been archived by the owner on Jul 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (64 loc) · 1.52 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
plugins{
id 'com.jfrog.bintray' version '1.8.4'
id 'java-library'
id 'idea'
id 'maven-publish'
id 'maven'
}
group = 'com.andre601'
version = '1.1.0'
sourceCompatibility = 1.8
jar{
baseName = 'JavaBotBlockAPI'
}
repositories{
mavenCentral()
jcenter()
}
dependencies{
api group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.11.0'
api group: 'org.json', name: 'json', version: '20180813'
api group: 'org.jetbrains', name: 'annotations', version: '16.0.2'
api(group: 'net.dv8tion', name: 'JDA', version: '4.BETA.0_23'){
exclude(module: 'opus-java')
}
}
task sourcesJar(type: Jar, dependsOn: classes){
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc){
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts{
archives sourcesJar
archives javadocJar
}
bintray{
user = bintrayUser
key = bintrayApiKey
publications = ['JavaBotBlockAPIRelease']
pkg{
repo = 'maven'
name = 'JavaBotBlockAPI'
licenses = ['MIT']
vcsUrl = 'https://github.com/Andre601/JavaBotBlockAPI'
version{
name = project.version
released = new Date()
}
}
}
publishing{
publications{
JavaBotBlockAPIRelease(MavenPublication){
from components.java
groupId group
artifactId archivesBaseName
version version
artifact javadocJar
artifact sourcesJar
}
}
}