-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (58 loc) · 1.42 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version "7.1.2"
id 'kr.entree.spigradle' version '2.4.2'
}
group = 'li.sopht'
version = '2.0-SNAPSHOT'
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = "yes"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
maven {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
}
dependencies {
implementation 'com.zaxxer:HikariCP:5.0.1'
compileOnly 'org.jetbrains:annotations:23.0.0'
compileOnly 'me.clip:placeholderapi:2.11.2'
compileOnly spigot('1.19.2')
}
shadowJar {
minimize()
classifier ''
relocate 'com.zaxxer.hikari', 'li.sopht.limitedplaytime.lib.hikari'
relocate 'org.slf4j', 'li.sopht.limitedplaytime.lib.slf4j'
}
tasks.assemble.dependsOn(shadowJar)
spigot {
debug {
buildVersion = '1.19.2'
}
authors 'Sophtli'
website 'sopht.li'
apiVersion '1.13'
softDepends 'PlaceholderAPI'
commands {
playtime {
aliases = ['pt', 'ptime']
description = 'Display your playtime!'
usage = '/playtime'
}
}
/*permissions {
'test.foo' {
description = 'Allows foo command'
defaults = 'op'
}
}*/
}