-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (33 loc) · 1 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
apply plugin: 'eclipse'
apply plugin: 'scala'
version = "0.1"
group = "com.gmail.nmarshall23"
project.ext.HOME = "$System.env.HOME"
project.ext.BUKKIT_HOME = project.HOME + "/bin/games/craftbukkit"
repositories {
mavenCentral()
maven {
url "http://repo.bukkit.org/content/repositories/releases"
}
}
dependencies {
// Libraries needed to run the scala tools
scalaTools 'org.scala-lang:scala-compiler:2.8.0'
scalaTools 'org.scala-lang:scala-library:2.8.0'
// Libraries needed for scala api
compile 'org.scala-lang:scala-library:2.8.0'
compile 'javax.servlet:servlet-api:2.5'
compile 'org.bukkit:bukkit:1.2.5-R1.0'
testCompile group: 'junit', name: 'junit', version: '4.8.2'
}
jar {
dependsOn configurations.runtime
def scalalib = configurations.runtime.find { it.getName() =~ /.*scala-library.*jar/ }
from {
zipTree(scalalib)
}
}
task copyPlugin(dependsOn: 'jar', type: Copy) {
from 'build/libs/'
into project.BUKKIT_HOME + "/plugins/"
}