generated from AllayMC/JavaPluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
85 lines (70 loc) · 2.29 KB
/
build.gradle.kts
File metadata and controls
85 lines (70 loc) · 2.29 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
plugins {
id("java-library")
id("com.vanniktech.maven.publish") version "0.34.0"
id("org.allaymc.gradle.plugin") version "0.2.1"
}
group = "org.allaymc"
description = "TemplateWorld is a plugin to make it able to create a runtime-only world based on a 'template world'"
version = "0.2.0"
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
configureEach {
options.isFork = true
}
}
// We already have sources jar, so no need to build Javadoc, which would cause a lot of warnings
withType<Javadoc> {
enabled = false
}
withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
allay {
api = "0.25.0"
plugin {
entrance = "org.allaymc.templateworld.TemplateWorld"
authors += "daoge_cmd"
website = "https://github.com/AllayMC/TemplateWorld"
}
}
dependencies {
compileOnly(group = "org.projectlombok", name = "lombok", version = "1.18.34")
annotationProcessor(group = "org.projectlombok", name = "lombok", version = "1.18.34")
}
configure<MavenPublishBaseExtension> {
publishToMavenCentral()
signAllPublications()
coordinates(project.group.toString(), "template-world", project.version.toString())
pom {
name.set(project.name)
description.set("TemplateWorld is a plugin to make it able to create a runtime-only world based on a 'template world'")
inceptionYear.set("2025")
url.set("https://github.com/AllayMC/TemplateWorld")
scm {
connection.set("scm:git:git://github.com/AllayMC/TemplateWorld.git")
developerConnection.set("scm:git:ssh://github.com/AllayMC/TemplateWorld.git")
url.set("https://github.com/AllayMC/TemplateWorld")
}
licenses {
license {
name.set("LGPL 3.0")
url.set("https://www.gnu.org/licenses/lgpl-3.0.en.html")
}
}
developers {
developer {
name.set("AllayMC Team")
organization.set("AllayMC")
organizationUrl.set("https://github.com/AllayMC")
}
}
}
}