forked from SpongePowered/Royale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (85 loc) · 2.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
name = 'oss-sonatype-public'
url = 'https://oss.sonatype.org/content/repositories/public/'
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
maven {
url = 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.12.1'
classpath 'org.spongepowered:spongegradle:0.5.+'
}
}
group = project.group
version = "${project.minecraftVersion}-r${project.apiVersion.split("-")[0]}"
apply plugin: 'com.github.hierynomus.license'
apply plugin: 'org.spongepowered.gradle'
apply plugin: 'org.spongepowered.plugin'
defaultTasks 'clean', 'licenseFormat', 'build'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
archivesBaseName = project.name.toLowerCase()
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'oss-sonatype-public'
url = 'https://oss.sonatype.org/content/repositories/public/'
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
compile 'org.spongepowered:spongeapi:5.+'
compile 'commons-io:commons-io:2.5'
}
idea {
module {
inheritOutputDirs = true
}
}
license {
ext.name = project.name
ext.organization = project.organization
ext.url = project.url
header rootProject.file('HEADER.txt')
ignoreFailures true
strictCheck true
include '**/*.java'
}
if (JavaVersion.current().isJava8Compatible() || JavaVersion.current().isJava9Compatible()) {
tasks.withType(Javadoc) {
// disable the crazy super-strict doclint tool in Java 8
options.addStringOption('Xdoclint:none', '-quiet')
}
}
compileJava {
options.compilerArgs += [
'-Xlint:-processing',
]
options.deprecation = true
options.encoding = 'utf8'
}
jar {
manifest {
attributes(
'Built-By': System.properties['user.name'],
'Created-By': System.properties['java.vm.version'] + ' (' + System.properties['java.vm.vendor'] + ')',
'Implementation-Title': project.name,
'Implementation-Version': version,
'Implementation-Vendor': url,
'FMLAT': 'special_at.cfg'
)
}
}