This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (57 loc) · 1.74 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
buildscript {
ext.kotlin_version = '1.1.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
group = 'com.MasahiroSaito.Spigot'
version = '0.10.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'vault-repo'
url = 'http://nexus.hc.to/content/repositories/pub_releases'
}
}
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
compile 'org.spigotmc:spigot-api:1.12-R0.1-SNAPSHOT'
compile 'net.milkbowl.vault:VaultAPI:1.6'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
embed "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.5'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.6'
testCompile group: 'org.powermock', name: 'powermock-api-easymock', version: '1.6.6'
testCompile group: 'org.easymock', name: 'easymock', version: '3.4'
}
jar {
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
task copyToServer(type: Copy) {
from "build/libs/Homes-${version}.jar"
into "server/plugins/"
}
build.finalizedBy copyToServer