-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'idea'
eclipse {
classpath {
downloadSources=true
}
}
ext {
scalaVersion = '2.10.2'
buildNumber = "DEV"
}
group = "com.aethercraft"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = 1.7
repositories {
mavenLocal()
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' // needed for scala based bukkit plugins
compile 'org.bukkit:bukkit:1.6.2-R0.1-SNAPSHOT'
compile('com.massivecraft:Factions:2.0.3AES-SNAPSHOT') {
exclude module: 'ProtocolLib'
exclude module: 'Privileges'
exclude module: 'craftconomy3'
exclude module: 'SDFEconomy'
exclude module: 'Vault'
}
}
processResources {
filter {
line ->
line
.replace('${name}', project.name)
.replace('${version}', project.version)
.replace('${buildNumber}', project.ext.buildNumber)
.replace('${pluginMainClass}', "${project.group}.${project.name.toLowerCase()}.Plugin")
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}