-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (57 loc) · 1.56 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
69
70
71
ext {
scalaVersion = '2.10.2'
buildNumber = ''
}
apply plugin: 'scala'
apply plugin: 'eclipse-wtp'
apply plugin: 'eclipse'
eclipse {
classpath {
downloadSources=true
}
}
group = "com.aethercraft"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = 1.7
repositories {
mavenCentral()
mavenRepo name:'scala-releases', url:'http://scala-tools.org/repo-releases/'
mavenRepo name:'scala-snapshots', url:'http://scala-tools.org/repo-snapshots/'
maven {
url "http://repo.bukkit.org/content/groups/public"
}
}
configurations {
scalaCompiler
scalaLibrary
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useCompileDaemon = false
scalaCompileOptions.useAnt = false
scalaCompileOptions.additionalParameters = ['-target:jvm-1.7']
}
dependencies {
scalaCompiler "org.scala-lang:scala-compiler:$scalaVersion"
scalaLibrary "org.scala-lang:scala-library:$scalaVersion"
compile "org.scala-lang:scala-library:$scalaVersion"
compile 'javax.servlet:servlet-api:2.4'
compile 'org.bukkit:bukkit:1.6.1-R0.1-SNAPSHOT'
}
processResources {
filter {
line ->
line
.replace('${name}', project.name)
.replace('${version}', project.version)
.replace('${buildNumber}', project.ext.buildNumber)
.replace('${pluginMainClass}', "${project.group}.${project.name.toLowerCase()}.$project.name")
}
}
//include dependencies for a "fat jar"
//http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-Creatingafatjar
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}