-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (52 loc) · 1.46 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
// Gradle plugins
buildscript {
repositories {
jcenter()
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
maven {
name = 'eclipse-staging'
url = 'https://repo.eclipse.org/content/repositories/eclipse-staging'
}
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'org.spongepowered:event-impl-gen:1.1.0'
classpath 'org.spongepowered:spongegradle:0.5.1'
}
}
defaultTasks 'build'
group 'org.spongepowered'
version '0.1'
apply plugin: 'org.spongepowered.plugin'
apply plugin: 'event-impl-gen'
sponge {
plugin {
meta {
id = "test"
name = 'Test'
version = '0.1'
description = 'This is a plugin that shows off custom plugin events with ASM.'
}
}
}
dependencies {
compile 'org.spongepowered:spongeapi:4.+'
// Event generation
compile 'org.ow2.asm:asm:5.0.3'
compile 'org.spongepowered:event-gen-core:1.1.0'
}
genEventImpl {
includeSrc = [
'src/main/java/org/spongepowered/test/event',
]
excludeSrc = []
outputDir = 'src/main/java/'
outputFactory = 'org.spongepowered.test.TestEventFactory'
eventImplCreateMethod = 'org.spongepowered.api.event.SpongeEventFactoryUtils.createEventImpl'
sortPriorityPrefix = 'original'
groupingPrefixes = ['from': 'to']
validateCode = true
}