-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (71 loc) · 2.05 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'license'
defaultTasks 'licenseFormat', 'build'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'pw.bytelab'
archivesBaseName = 'wormholes'
version = '1.0'
ext.buildNumber = project.hasProperty("buildNumber") ? '#' + buildNumber : 'SNAPSHOT'
ext.ciSystem = project.hasProperty("ciSystem") ? ciSystem : 'unknown'
ext.commit = project.hasProperty("commit") ? commit : 'unknown'
//Manifest information
jar.manifest.mainAttributes(
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": projectName,
"Implementation-Version": version + "-ci." + ciSystem + "-" + buildNumber + " (commit." + commit + ")",
"Implementation-Vendor": url
)
repositories {
mavenCentral()
maven {
url 'http://repo.bukkit.org/content/groups/public/'
}
}
dependencies {
compile group: 'org.bukkit', name: 'bukkit', version: '1.7.9-R0.2'
compile fileTree(dir: 'libs', include: '*.jar')
}
configure([compileJava, compileTestJava]) {
options.compilerArgs += ['-Xlint:all', '-Xlint:-path']
options.deprecation = true
options.encoding = 'utf8'
}
processResources {
from 'LICENSE.txt'
}
license {
ext.name = project.name
ext.organization = project.organization
ext.url = project.url
ext.inceptionYear = project.inceptionYear
ext.currentYear = Calendar.getInstance().get(Calendar.YEAR)
exclude "**/*.info"
exclude "**/*.yml"
header rootProject.file('HEADER.txt')
skipExistingHeaders true
ignoreFailures false
strictCheck true
sourceSets = project.sourceSets
mapping {
java = 'SLASHSTAR_STYLE'
lang = 'SCRIPT_STYLE'
}
}
//Tbot's server task
task copyBinaries(type: Copy, dependsOn: 'build') {
from(jar.archivePath)
into('.bukkit/plugins')
include('*.jar')
}