-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
49 lines (40 loc) · 1.31 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
apply plugin: 'java'
group = pluginGroup
version = pluginVersion
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
jcenter()
google()
maven {
url "https://maven.springframework.org/release"
}
maven {
url "https://maven.restlet.com"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
// https://mvnrepository.com/artifact/net.dv8tion/JDA
// compile group: 'net.dv8tion', name: 'JDA', version: '4.1.1_143'
// https://mvnrepository.com/artifact/com.jagrosh/jda-utilities
// compile group: 'com.jagrosh', name: 'jda-utilities', version: '3.0.3'// , ext: 'pom'
// implementation 'org.javacord:javacord:3.0.6'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
tasks.withType(AbstractCompile)*.options*.encoding = tasks.withType(GroovyCompile)*.groovyOptions*.encoding = 'UTF-8'