-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (44 loc) · 1.13 KB
/
build.gradle.kts
File metadata and controls
51 lines (44 loc) · 1.13 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
plugins {
id("java")
id("maven-publish")
}
group = "ru.unlegit"
version = "1.0.1"
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
compileOnly("com.google.code.gson:gson:2.10.1")
compileOnly("com.squareup.okhttp3:okhttp:4.12.0")
testCompileOnly("org.projectlombok:lombok:1.18.24")
testAnnotationProcessor("org.projectlombok:lombok:1.18.24")
testImplementation("com.google.code.gson:gson:2.10.1")
testImplementation("com.squareup.okhttp:okhttp:4.12.0")
}
publishing {
repositories {
mavenLocal()
}
publications {
create<MavenPublication>("rest-hooks") {
from(components["java"])
}
}
}
tasks {
jar {
archiveFileName.set("rest-hooks.jar")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.runtimeClasspath.get().files.forEach { from(zipTree(it)) }
}
compileJava {
options.encoding = Charsets.UTF_8.name()
}
}