forked from NLthijs48/AreaShop
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle.kts
101 lines (87 loc) · 2.87 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsPlugin
plugins {
java
`java-library`
`maven-publish`
id("com.github.spotbugs") version "5.1.3"
idea
eclipse
}
group = "me.wiefferink"
version = "2.9.2-SNAPSHOT"
val targetJavaVersion = 21
val encoding = Charsets.UTF_8
val encodingName: String = encoding.name()
java.toolchain.languageVersion.set(JavaLanguageVersion.of(targetJavaVersion))
subprojects {
group = rootProject.group
version = rootProject.version
apply {
plugin<JavaPlugin>()
plugin<JavaLibraryPlugin>()
plugin<IdeaPlugin>()
plugin<EclipsePlugin>()
plugin<MavenPublishPlugin>()
// plugin<SpotBugsPlugin>()
}
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/groups/public/")
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots"
mavenContent {
snapshotsOnly()
}
}
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven {
name = "jitpack"
url = uri("https://jitpack.io")
content {
includeGroupByRegex("com\\.github.*")
}
}
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://maven.enginehub.org/repo/")
}
dependencies {
implementation("org.jetbrains:annotations:24.0.1")
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(targetJavaVersion))
tasks {
withType(JavaCompile::class) {
options.release.set(targetJavaVersion)
options.encoding = encodingName
options.isFork = true
options.isDeprecation = true
}
withType(Javadoc::class) {
options.encoding = encodingName
}
withType(ProcessResources::class) {
filteringCharset = encodingName
}
}
publishing {
publications {
create<MavenPublication>(project.name) {
from(components["java"])
pom {
scm {
connection.set("scm:git:git://github.com/md5sha256/AreaShop.git")
developerConnection.set("scm:git:ssh://github.com/md5sha256/AreaShop.git")
url.set("https://github.com/md5sha256/AreaShop/tree/dev/bleeding")
}
licenses {
license {
name.set("GNU General Public License v3.0")
url.set("https://github.com/md5sha256/AreaShop/blob/dev/bleeding/LICENSE")
}
}
}
}
}
}
}