-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
83 lines (71 loc) · 1.96 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
74
75
76
77
78
79
80
81
82
83
buildscript {
repositories {
jcenter()
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
}
}
plugins {
id 'scala'
id 'org.spongepowered.plugin' version '0.8.1'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
projects {
version '2.0.0-alpha.4'
group 'io.izzel.amberadvancedattributes'
sponge.plugin.id = 'amberadvancedattributes'
defaultTasks 'clean', 'build'
tasks.build.dependsOn tasks.shadowJar
}
sourceSets {
api
main {
compileClasspath += api.output
}
}
configurations {
compilerPlugin
}
repositories {
mavenCentral()
maven {
name = 'jitpack'
url = 'https://jitpack.io'
}
}
dependencies {
compile 'org.scala-lang:scala-library:2.11.1'
compile 'org.scala-lang:scala-reflect:2.11.1'
compile 'org.spongepowered:spongeapi:7.2.0-SNAPSHOT'
apiCompile 'org.spongepowered:spongeapi:7.2.0-SNAPSHOT'
compile 'com.github.IzzelAliz:AmberCommon:master-SNAPSHOT'
compile 'com.github.randombyte-developer:byte-items:v2.4.1'
compile 'com.github.rojo8399:PlaceholderAPI:master-SNAPSHOT'
compile 'org.scala-lang.modules:scala-parser-combinators_2.11:1.0.1'
compile 'org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2'
compilerPlugin 'org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2'
}
compileScala {
sourceCompatibility = targetCompatibility = '1.7'
scalaCompileOptions.additionalParameters = ['-Xplugin:' + configurations.compilerPlugin.asPath, '-P:continuations:enable']
}
shadowJar {
minimize()
archiveClassifier.set(null)
dependencies {
it.include it.dependency('com.github.IzzelAliz:.*')
}
from sourceSets.api.output
}
jar {
archiveClassifier.set('pure')
from sourceSets.api.output
}
task apiJar(type: Jar) {
archiveClassifier.set('api')
from sourceSets.api.allSource
from sourceSets.api.output
}
jar.dependsOn(apiJar)