-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
75 lines (64 loc) · 1.47 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
buildscript {
repositories {
mavenCentral()
maven {
name = 'minecrell-repo'
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.net.minecrell:licenser:0.3"
}
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: "net.minecrell.licenser"
// Arguments :
ext.plugin_version = "1.1"
version = ext.plugin_version + "-RELEASE"
if (project.hasProperty("BUILD_NUMBER")) {
version = version + '-' + project.property("BUILD_NUMBER")
}
group = 'fr.evercraft'
organization = 'EverCraft'
// Default tasks
defaultTasks 'clean', 'licenseFormat', 'build'
repositories {
mavenCentral()
maven {
name = 'spigot-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'bungeecord-repo'
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
compile "org.bukkit:bukkit:1.11.2-R0.1-SNAPSHOT"
compile "net.md-5:bungeecord-api:1.12-SNAPSHOT"
}
jar {
manifest {
attributes 'Implementation-Title': name,
'Implementation-Version': version
}
}
processResources {
include '*.yml'
from 'HEADER.txt'
}
license {
header = project.file('HEADER.txt')
include '**/*.java'
ignoreFailures = true
newLine = false // Disables the new line
ext {
name = project.name
organization = project.organization
url = project.url
}
}