forked from biels/Minicat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (50 loc) · 1.6 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
plugins {
id "org.sonarqube" version "2.6"
}
apply plugin: 'java'
apply plugin: 'idea'
archivesBaseName = 'minicat'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
//mavenLocal() Enable to compile with BielAPI preinstalled on mavenlocal
/* maven{
//Repository url is ok, but server seems to be (temporarily, 02/01/17) serving wrong content
//url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}*/
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots"
}
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
jar {
}
def defaultEncoding = 'UTF-8'
compileJava{
options.encoding = defaultEncoding
}
compileTestJava{
options.encoding = defaultEncoding
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile 'org.apache.commons:commons-io:1.3.2'
//Enable if you have BielAPI installed on maven local
//compile 'BielAPI:BielAPI:0.0.8-SNAPSHOT'
compile fileTree(dir: 'lib', include: '*.jar')
//Enable to use automatic download, when avaliable
//compile 'org.spigotmc:spigot-api:1.10-R0.1-SNAPSHOT'
// compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
compileOnly "org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT"
// compileOnly "org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT"
testCompileOnly "org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT"
}
task deploy(type: Copy){
from('build/libs') {
include '**/*.jar'
}
into 'F:\\Servers MC\\Lobby - 1.9\\plugins'
}
deploy.dependsOn assemble