-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (85 loc) · 2.59 KB
/
build.gradle
File metadata and controls
99 lines (85 loc) · 2.59 KB
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
92
93
94
95
96
97
98
99
plugins {
id 'java-library'
id 'com.gradleup.shadow' version '9.2.2'
id 'io.papermc.paperweight.userdev' version '2.0.0-beta.19'
id 'checkstyle'
}
group = 'me.mapacheee'
version = '3.1.0'
description = 'ExtendedHorizons - Advanced view distance extension plugin'
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
repositories {
mavenCentral()
mavenLocal()
maven {
name = 'papermc-repo'
url = 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'placeholderapi'
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
name = 'codemc-repo'
url = 'https://repo.codemc.org/repository/maven-public/'
}
maven {
name = 'codemc-snapshots'
url = 'https://repo.codemc.io/repository/maven-snapshots/'
}
maven {
name = 'enginehub-repo'
url = 'https://maven.enginehub.org/repo/'
}
}
dependencies {
compileOnlyApi("me.mapacheee:MapacheeeLib:1.0.0")
annotationProcessor("me.mapacheee:MapacheeeLib:1.0.0")
paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT")
annotationProcessor("com.thewinterframework:paper:1.0.6")
annotationProcessor("com.thewinterframework:configuration:1.0.4")
compileOnly("me.clip:placeholderapi:2.12.2")
compileOnly(platform("com.intellectualsites.bom:bom-newest:1.56"))
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { transitive = false }
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.release = 21
}
shadowJar {
relocate 'com.github.benmanes.caffeine', 'me.mapacheee.lib.caffeine'
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Multi-Release': 'false'
)
}
archiveBaseName = 'ExtendedHorizons'
archiveClassifier = ''
archiveVersion = project.version
configurations = [project.configurations.runtimeClasspath]
preserveFileTimestamps = false
reproducibleFileOrder = true
}
tasks.build {
dependsOn shadowJar
}
processResources {
filteringCharset = 'UTF-8'
filesMatching(['plugin.yml', 'paper-plugin.yml']) {
expand(version: project.version, description: project.description)
}
}
checkstyle {
toolVersion = '10.12.5'
configFile = file('checkstyle.xml')
ignoreFailures = true
}