-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (87 loc) · 2.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'com.jfrog.bintray' version '1.8.5'
id 'maven'
id 'maven-publish'
}
def libVersion = '1.0.3'
group 'io.github.techdweebgaming'
version libVersion
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation 'net.dv8tion:JDA:4.1.1_101'
implementation 'org.reflections:reflections:0.9.12'
implementation 'com.electronwill.night-config:core:3.6.0'
implementation 'com.electronwill.night-config:toml:3.6.0'
}
Properties properties = new Properties();
properties.load(project.rootProject.file('local.properties').newDataInputStream())
shadowJar {
exclude 'io/github/techdweebgaming/modularjda/test/**'
}
java {
withSourcesJar()
withJavadocJar()
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "techdweebgaming"
name "techdweebgaming"
email "nomail@dontemailme.com"
}
}
scm {
url "https://github.com/TechDweebGaming/ModularJDA"
}
}
publishing {
publications {
shadow(MavenPublication) {
project.shadow.component(it)
artifact sourcesJar {
exclude 'io/github/techdweebgaming/modularjda/test/**'
}
artifact javadocJar {
exclude 'io/github/techdweebgaming/modularjda/test/**'
}
groupId 'io.github.techdweebgaming'
artifactId 'modularjda'
version libVersion
pom.withXml {
def root = asNode()
root.appendNode('description', 'A modular command library designed to improve the development experience of JDA.')
root.appendNode('name', 'ModularJDA')
root.appendNode('url', 'https://github.com/TechDweebGaming/ModularJDA')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = properties.getProperty('bintray.user')
key = properties.getProperty('bintray.apiKey')
pkg {
repo = 'ModularJDA'
name = 'ModularJDA'
version {
name = libVersion
released = new Date()
vcsTag = libVersion
}
publications = ['shadow']
}
}