-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (67 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
// Default tasks
defaultTasks 'licenseFormatMain', 'clean', 'build'
// Apply plugins
apply plugin: 'java'
apply plugin: 'license'
// Basic project information
group = 'com.almuradev'
archivesBaseName = 'lore'
version = '2.2'
// Extended project information
ext.mainClass = 'com.almuradev.lore.LorePlugin'
ext.inceptionYear = '2013'
ext.packaging = 'jar'
ext.url = 'http://almuradev.com'
ext.description = 'Lore is a simple and lightweight plugin that is aimed to give your server a more diverse and informative experience by allowing administrators to easily create, manage and hand-out books to players either on their first login or upon respawning. This is a must have plugin for any RPG server out there!'
ext.organization = 'AlmuraDev'
ext.license = 'GNU General Public License Version 3'
// Minimum version of Java required
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
buildscript {
// Repositories and plugin dependencies
repositories {
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.7.0'
}
}
repositories {
mavenCentral()
maven {
name = 'bukkit-repo'
url = 'http://repo.bukkit.org/content/groups/public/'
}
}
// Dependencies for compilation and testing
dependencies {
compile 'org.bukkit:bukkit:1.7.2-R0.4-SNAPSHOT'
}
// Include resources in final JAR
processResources {
from(rootProject.rootDir) {
include 'LICENSE.txt'
}
expand 'name': project.name,
'version': version,
'description': project.ext.description,
'authors': organization,
'url': url,
'mainClass': mainClass
}
// License header formatting
import nl.javadude.gradle.plugins.license.License
tasks.withType(License).each { licenseTask ->
licenseTask.exclude '**/*.yml'
}
license {
ext.name = project.name
ext.organization = organization
ext.url = url
ext.license = license
ext.inceptionYear = inceptionYear
header rootProject.file('HEADER.txt')
ignoreFailures true
strictCheck true
}