-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
115 lines (101 loc) · 3.07 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
115 lines (101 loc) · 3.07 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
`java-library`
`maven-publish`
id("io.github.goooler.shadow") version "8.1.5" // Use fork until shadow has updated to Java 21
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://repo.inventivetalent.org/content/groups/public/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
api("org.bstats:bstats-base:3.0.0") { isTransitive = false }
compileOnly("org.bstats:bstats-bukkit:3.0.0") { isTransitive = false }
compileOnly("io.papermc.paper:paper-api:1.21.7-R0.1-SNAPSHOT")
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
// Databases
implementation("org.jdbi:jdbi3-core:3.49.1")
implementation("org.jdbi:jdbi3-sqlobject:3.49.1")
implementation("org.jdbi:jdbi3-postgres:3.49.1")
implementation("com.zaxxer:HikariCP:6.2.1")
implementation("org.postgresql:postgresql:42.7.5")
}
group = "de.erethon"
version = "1.5.17"
description = "Bedrock"
java.sourceCompatibility = JavaVersion.VERSION_21
tasks {
shadowJar {
archiveFileName.set("bedrock-${version}.jar")
dependencies {
include(dependency("org.bstats:bstats-base:3.0.0"))
include(dependency("org.bstats:bstats-bukkit:3.0.0"))
include(dependency("org.jdbi:jdbi3-core:3.49.1"))
include(dependency("org.jdbi:jdbi3-sqlobject:3.49.1"))
include(dependency("org.jdbi:jdbi3-postgres:3.49.1"))
include(dependency("com.zaxxer:HikariCP:6.2.1"))
include(dependency("org.postgresql:postgresql:42.7.5"))
}
relocate("org.bstats", "de.erethon.bedrock.bstats")
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
val javadocJar by creating(Jar::class) {
dependsOn(javadoc)
archiveClassifier.set("javadoc")
from(javadoc)
}
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
assemble {
dependsOn(shadowJar)
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
options.release.set(21)
options.compilerArgs.add("--enable-preview")
}
publishing {
repositories {
maven {
name = "erethon"
url = uri("https://repo.erethon.de/snapshots/")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = "${project.group}"
artifactId = "bedrock"
version = "${project.version}"
from(components["java"])
}
}
}