This repository was archived by the owner on Dec 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (54 loc) · 1.67 KB
/
build.gradle
File metadata and controls
65 lines (54 loc) · 1.67 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
group 'com.discordbolt.api'
version '2.3'
buildscript {
ext {
discord4jVersion = "3.0.12"
}
}
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
checkstyle {
toolVersion "8.10.1"
configFile = 'src/test/resources/checkstyle.xml' as File
}
repositories {
mavenCentral()
// Reactor Fix
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
// Discord4J
api group: 'com.discord4j', name: 'discord4j-core', version: "$discord4jVersion"
// Reflection (For finding commands)
implementation group: 'org.reflections', name: 'reflections', version: '0.9.11'
// Logging
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
// @NotNull annotations
implementation group: 'org.checkerframework', name: 'checker', version: '2.1.12'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.18.3'
testCompile group: 'io.projectreactor', name: 'reactor-test', version: '3.1.0.RELEASE'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
}
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
}
wrapper {
gradleVersion = '6.0.1'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}