forked from CrushedPixel/PacketGate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
77 lines (68 loc) · 2.07 KB
/
build.gradle.kts
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
import org.spongepowered.gradle.plugin.config.PluginLoaders
import org.spongepowered.gradle.vanilla.repository.MinecraftPlatform
import org.spongepowered.plugin.metadata.model.PluginDependency
plugins {
`maven-publish`
`java-library`
id("org.spongepowered.gradle.plugin") version "2.0.0"
id("org.spongepowered.gradle.vanilla") version "0.2"
}
group = "eu.crushedpixel.sponge"
version = "0.2.0"
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.spongepowered:mixin:0.8.3")
}
minecraft {
version("1.16.5")
platform(MinecraftPlatform.SERVER)
injectRepositories(false)
}
sponge {
apiVersion("8.0.0")
license("NO_LICENCE_YET")
plugin("packetgate") {
loader {
name(PluginLoaders.JAVA_PLAIN)
version("1.0")
}
displayName("PacketGate")
entrypoint("eu.crushedpixel.sponge.packetgate.plugin.PluginPacketGate")
description("Sponge library to manipulate incoming and outgoing Packets. ")
links {
homepage("https://github.com/CrushedPixel/PacketGate")
source("https://github.com/CrushedPixel/PacketGate")
issues("https://github.com/CrushedPixel/PacketGate/issues")
}
contributor("CrushedPixel") {
description("Lead developer")
}
contributor("Masa") {
description("API8 port")
}
dependency("spongeapi") {
loadOrder(PluginDependency.LoadOrder.AFTER)
optional(false)
}
}
}
tasks.withType<Jar> {
manifest {
attributes["MixinConfigs"] = "mixins.packetgate.json"
}
}
tasks.withType(JavaCompile::class).configureEach {
options.apply {
encoding = "utf-8" // Consistent source file encoding
if (JavaVersion.current().isJava10Compatible) {
release.set(11)
}
}
}
// Make sure all tasks which produce archives (jar, sources jar, javadoc jar, etc) produce more consistent output
tasks.withType(AbstractArchiveTask::class).configureEach {
isReproducibleFileOrder = true
isPreserveFileTimestamps = false
}