-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (73 loc) · 2.35 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
77
78
79
80
81
plugins {
kotlin("jvm") version "1.9.10"
`maven-publish`
signing
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
id("com.github.ben-manes.versions") version "0.50.0"
}
group = "hu.webhejj.perspektive"
version = "0.1.0"
description = "Perspektive is a diagramming tool written in Kotlin"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("io.github.classgraph:classgraph:4.8.165")
implementation("net.sourceforge.plantuml:plantuml:1.2023.12")
implementation("org.slf4j:slf4j-api:2.0.9")
implementation("ch.qos.logback:logback-classic:1.4.11")
implementation("ch.qos.logback:logback-core:1.4.11")
testImplementation(kotlin("test"))
}
tasks.withType<Test> {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
packaging = "jar"
name.set("perspektive")
description.set(project.description)
url.set("https://github.com/gnagy/perspektive")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("gnagy")
name.set("Gergely Nagy")
email.set("greg@webhejj.hu")
}
}
scm {
connection.set("scm:git:git://github.com/gnagy/perspektive.git")
developerConnection.set("scm:git:ssh://github.com/gnagy/perspektive.git")
url.set("https://github.com/gnagy/perspektive")
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.findProperty("ossrhUsername") as String?
password = project.findProperty("ossrhPassword") as String?
}
}
}
}
signing {
sign(publishing.publications["maven"])
}