-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (43 loc) · 1.33 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
plugins {
java
`maven-publish`
id("io.freefair.lombok") version "8.0.1"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "${project.group}"
version = "${project.version}"
repositories {
mavenLocal()
maven { url = uri("https://repo.papermc.io/repository/maven-public/") }
maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
maven { url = uri("https://repo.maven.apache.org/maven2/") }
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
implementation("org.objenesis:objenesis:3.2")
implementation("io.github.classgraph:classgraph:4.8.138")
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
options.compilerArgs.add("-parameters")
}
javadoc { options.encoding = Charsets.UTF_8.name() }
shadowJar {
relocate("gg.projecteden.api", "commands.gg.projecteden.api")
relocate("org.objenesis", "commands.org.objenesis")
}
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
repositories {
maven {
name = "edenSnapshots"
url = uri("https://sonatype.projecteden.gg/repository/maven-snapshots/")
credentials(PasswordCredentials::class)
}
}
}