This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
80 lines (63 loc) · 2.25 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'org.cadixdev.licenser' version '0.6.0'
id 'io.freefair.lombok' version '5.3.3.3'
}
group = 'com.discordsrv'
version = '1.0.0'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
// Spigot & PlaceholderAPI
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
// DiscordSRV
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
maven { url 'https://nexus.vankka.dev/repository/maven-public/' }
maven { url 'https://m2.dv8tion.net/releases/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
// Bukkit
compileOnly 'org.bukkit:bukkit:1.12.2-R0.1-SNAPSHOT'
// PlaceholderAPI
compileOnly 'me.clip:placeholderapi:2.10.9'
// DiscordSRV
compileOnly 'com.discordsrv:discordsrv:1.23.0-SNAPSHOT'
// Config
implementation 'github.scarsz:configuralize:1.3.2'
// Commons
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-lang3:3.5'
// SpEL
implementation 'org.springframework:spring-expression:5.2.7.RELEASE'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [VERSION: project.version]
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
jar {
dependsOn licenseFormat
finalizedBy shadowJar
}
shadowJar {
relocate 'org.springframework.expression', 'com.discordsrv.alerts.dependencies.org.springframework.expression'
relocate 'org.apache', 'com.discordsrv.alerts.dependencies.org.apache'
relocate 'alexh', 'com.discordsrv.alerts.dependencies.alexh'
//noinspection GroovyAssignabilityCheck
archiveClassifier = ''
}
license {
header = rootProject.file('LICENSE_HEADER')
properties {
String inception = '2021'
String currentYear = Calendar.getInstance().get(Calendar.YEAR)
year = inception == currentYear ? currentYear : inception + '-' + currentYear
}
include '**/*.java' // only java files
}