-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (83 loc) · 2.34 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
plugins {
id 'com.jfrog.bintray' version '1.8.5'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'maven'
}
apply plugin: 'java'
group 'x.samantha'
version '0.1.4_1'
archivesBaseName = 'CommandsJDA'
repositories {
jcenter()
}
dependencies {
implementation group: 'net.dv8tion', name: 'JDA', version: '4.2.0_218'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
implementation group: 'org.apache.lucene', name: 'lucene-core', version: '8.7.0'
implementation group: 'org.apache.lucene', name: 'lucene-queryparser', version: '8.7.0'
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'discord'
name = 'CommandsJDA'
licenses = ['MIT']
vcsUrl = 'https://github.com/x-Samantha/CommandsJDA.git'
version {
name = project.version
desc = 'Pre-release CommandsJDA'
released = new Date()
vcsTag = project.version
}
}
configurations = ['archives']
publish = true
}
task createPOM {
pom {
project {
packaging 'aar'
groupId project.group
artifactId 'CommandsJDA'
version project.version
name 'CommandsJDA'
inceptionYear '2020'
licenses {
license {
name 'MIT'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
name 'Samantha Blackrose'
roles {
role 'Lead Developer'
}
}
}
scm {
connection 'https://github.com/x-Samantha/CommandsJDA.git'
developerConnection 'https://github.com/x-Samantha/CommandsJDA.git'
}
}
}.writeTo("pom.xml")
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
build {
dependsOn('createPOM', 'bintrayUpload')
}