This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
63 lines (55 loc) · 1.59 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
// Tasks to perform when no task is specified
defaultTasks 'clean', 'build', 'mixin'
// Plugins used
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.glowstone.mixins'
// Basic project information
group = 'net.glowstone'
version = '0.0.1-SNAPSHOT'
description = "ShinySponge"
// Buildscript settings
buildscript {
repositories {
jcenter()
maven { url "http://repo.glowstone.net/content/groups/public/" }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.0'
classpath 'net.glowstone:mixins:1.0'
classpath 'org.ow2.asm:asm:5.0.3'
}
}
// Compiler settings
compileJava {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
options.encoding = 'UTF-8'
}
// Repositories storing our dependencies
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repo.spongepowered.org/Sponge/maven/" }
}
// Dependencies used by our project
dependencies {
compile 'org.spongepowered:spongeapi:1.0'
compile 'org.slf4j:slf4j-jdk14:1.7.7'
testCompile 'junit:junit:4.8.1'
}
mixin {
mappingFile = file('mixins.txt')
inputTask = shadowJar
}
// Jar manifest information
jar.manifest.mainAttributes(
'Main-Class': 'net.glowstone.shiny.Main',
'Implementation-Title': description,
'Implementation-Version': version,
'Implementation-Vendor': 'http://www.glowstone.net',
'Specification-Title': 'SpongeAPI',
'Specification-Version': '1.0.0-SNAPSHOT',
'Specification-Vendor': 'http://spongepowered.org',
'Sealed': true
)