-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
100 lines (79 loc) · 1.9 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')
id('maven-publish')
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'edu.regent'
version '1.2'
sourceCompatibility = 1.17
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
implementation 'net.dv8tion:JDA:4.2.0_247'
implementation 'com.jagrosh:jda-utilities-command:3.0.5'
testImplementation group:'org.junit.jupiter', name:'junit-jupiter-engine', version:'5.4.0'
testImplementation 'org.mockito:mockito-core:4.3.1'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'shiritoribot'
from components.java
pom {
name = "ShiritoriBot"
description = "A bot for playing Shiritori on Discord"
developers {
developer {
id = "CrypticCabub"
name = "Caleb Pearson"
email = "[email protected]"
}
developer {
id = ""
name = ""
email = ""
}
}
}
}
}
}
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.links(
'http://docs.oracle.com/javase/7/docs/api/'
)
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
shadowJar {
archiveClassifier.set('')
}
artifacts {
shadowJar
}
build.dependsOn(shadowJar)
jar {
manifest {
attributes(
'Main-Class': 'edu.regent.shiritoribot.ShiritoriBot'
)
}
from { fileTree('lib').collect { zipTree(it) } }
}
artifacts {
archives javadocJar
}