forked from Maxlego08/zEssentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (77 loc) · 2.48 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
91
plugins {
id 'java'
id("com.dorongold.task-tree") version "2.1.1"
id("io.papermc.paperweight.userdev") version "1.7.1"
}
group = 'fr.maxlego08.essentials'
version = property('version')
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
// needed by paperweight plugin
dependencies {
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
}
subprojects {
apply plugin: 'java'
apply plugin: 'io.papermc.paperweight.userdev'
group = 'fr.maxlego08.essentials'
version = property('version')
repositories {
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven {
name = "devmart-other"
url = "https://nexuslite.gcnt.net/repos/other/"
}
maven { url 'https://jitpack.io' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
}
dependencies {
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
implementation "com.tcoded:FoliaLib:0.3.1"
implementation 'com.github.Maxlego08:Sarah:0df8b75dc3'
implementation('redis.clients:jedis:5.1.2') {
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'org.slf4j', module: 'slf4j-api'
}
compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT'
compileOnly 'com.github.Maxlego08:zMenu-API:1.0.3.1'
compileOnly 'me.clip:placeholderapi:2.11.5'
testImplementation 'junit:junit:4.12'
}
}
tasks.register("buildAll") {
group = "essentials"
description = "Build all Essentials related plugins"
dependsOn(
":EssentialsApi:build",
":Hooks:Vault:build",
":Hooks:Redis:build",
":NMS:R3_1_20:build",
":Essentials:build"
)
}