forked from Darkness6030/JavaPayokSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
48 lines (39 loc) · 928 Bytes
/
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
plugins {
id("java-library")
id("maven-publish")
}
group = "net.darkness"
version = "1.5"
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
register("release", MavenPublication::class) {
from(components["java"])
artifactId = "java-payok-sdk"
}
}
}
repositories {
mavenCentral()
maven(url = "https://www.jitpack.io")
}
dependencies {
implementation("com.sparkjava:spark-core:2.9.4")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
}
tasks.jar {
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "net.darkness.Payok"
}
}