-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (36 loc) · 1.02 KB
/
build.gradle
File metadata and controls
44 lines (36 loc) · 1.02 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
apply plugin: 'java'
apply plugin: 'maven'
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
def mcVersion = '1.12.2'
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name = 'dmulloy2 repo'
url = 'http://repo.dmulloy2.net/content/groups/public/'
}
maven {
name = 'EngineHub repo'
url = 'https://maven.enginehub.org/repo/'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.bukkit:bukkit:$mcVersion-R0.1-SNAPSHOT"
compile "org.bukkit:craftbukkit:$mcVersion-R0.1-SNAPSHOT"
compile 'com.sk89q.craftbook:craftbook:3.9-SNAPSHOT'
}
import org.apache.tools.ant.filters.ReplaceTokens
def versionString = version + "-" + mcVersion
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: versionString]
}
}