This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
76 lines (62 loc) · 2.09 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("plugin.serialization") version "1.9.0"
kotlin("jvm") version "1.9.23"
alias(libs.plugins.sonatypeCentralPortalPublisher)
}
group = "world.avionik"
version = "1.0.1"
repositories {
mavenCentral()
// simplecloud dependencies
maven("https://repo.thesimplecloud.eu/artifactory/list/gradle-release-local/")
}
dependencies {
compileOnly(kotlin("stdlib"))
// avionik-world dependencies
compileOnly("world.avionik:config-kit:1.0.2")
runtimeOnly("world.avionik:config-kit:1.0.2")
api("world.avionik:clientserverapi:4.2.1")
// netty dependencies
api("io.netty:netty-all:4.1.100.Final")
// simplecloud dependencies
compileOnly("eu.thesimplecloud.jsonlib:json-lib:1.0.10")
// log4j dependencies
compileOnly("org.apache.logging.log4j:log4j-core:2.23.1")
runtimeOnly("org.apache.logging.log4j:log4j-core:2.23.1")
compileOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.23.1")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.23.1")
}
tasks.named("shadowJar", ShadowJar::class) {
mergeServiceFiles()
}
signing {
useGpgCmd()
sign(configurations.archives.get())
}
centralPortal {
username = project.findProperty("sonatypeUsername") as String
password = project.findProperty("sonatypePassword") as String
pom {
name.set("Netty Kit")
description.set("Easy to create a NettyServer and a NettyClient")
url.set("https://github.com/avionik-world/netty-kit")
developers {
developer {
id.set("niklasnieberler")
email.set("admin@avionik.world")
}
}
licenses {
license {
name.set("Apache-2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
url.set("https://github.com/avionik-world/netty-kit.git")
connection.set("git:git@github.com:avionik-world/netty-kit.git")
}
}
}