-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (79 loc) · 1.92 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
plugins {
id("java")
id("eclipse")
id("org.spongepowered.gradle.plugin") version "2.0.2"
}
group = "sawfowl.guishopmanager"
version = "${major}.${minor}.${patch}-${api}-${suffix}"
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_21
}
compileJava.options.compilerArgs << "-Xmaxerrs" << "9999"
repositories {
mavenCentral()
maven {
name = "Sponge"
url = "https://repo.spongepowered.org/repository/maven-public"
}
maven {
name = "JitPack"
url 'https://jitpack.io'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
implementation "org.spongepowered:spongeapi:${api}"
implementation 'org.spongepowered:spongevanilla:1.20.6-11.0.1-RC1707:universal'
//implementation "com.github.SawFowl:LocaleAPI:${localeapi}"
//implementation "com.github.SawFowl:CommandPack:${commandpack}"
implementation fileTree(dir: 'libs', include: '*.jar')
}
sponge {
apiVersion("${api}")
loader {
name("java_plain")
version("1.0")
}
license("GPL-3.0")
plugin("guishopmanager") {
displayName(project.name.capitalize())
version("${project.version}")
entrypoint("${project.group}.${rootProject.name}")
description("Plugin for create chest shops.")
contributor("SawFowl") {
description("Lead Developer")
}
links {
homepage("https://ore.spongepowered.org/Semenkovsky_Ivan/GuiShopManager")
source("https://github.com/SawFowl/GuiShopManager")
issues("https://github.com/SawFowl/GuiShopManager/issues")
}
dependency("spongeapi") {
optional(false)
loadOrder("after")
version("${api}")
}
dependency("localeapi") {
optional(false)
loadOrder("after")
version("${localeapi}")
}
dependency("commandpack") {
optional(false)
loadOrder("after")
version("${commandpack}")
}
dependency("mysqldriver") {
optional(true)
loadOrder("after")
version("1.0.0")
}
dependency("h2driver") {
optional(true)
loadOrder("after")
version("1.0.0")
}
}
}