-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
90 lines (75 loc) · 2.57 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
82
83
84
85
86
87
88
89
plugins {
kotlin("jvm") version "2.1.0"
id("maven-publish")
java
}
group = property("maven_group")!!
version = property("project_version")!!
val archiveBaseName: String = property("archives_base_name") as String
base {
archivesName = archiveBaseName
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("com.electronwill.night-config:core:${property("night_config_version")}")
implementation("com.electronwill.night-config:toml:${property("night_config_version")}")
implementation("com.electronwill.night-config:json:${property("night_config_version")}")
implementation("com.electronwill.night-config:yaml:${property("night_config_version")}")
implementation("com.electronwill.night-config:hocon:${property("night_config_version")}")
implementation("org.slf4j:slf4j-api:${property("slf4j_version")}")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
publishing {
repositories {
maven("https://maven.enjarai.dev/releases") {
name = "enjaraiMaven"
credentials(PasswordCredentials::class.java)
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group.toString()
artifactId = base.archivesName.get()
version = project.version.toString()
from(components["java"])
pom {
name.set(archiveBaseName)
description.set("A declarative Kotlin library to create and manage configuration files easily and idiomatically.") // Change here
url.set("https://github.com/ArkoSammy12/monkey-config")
licenses {
license {
name.set("The MIT License (MIT)")
url.set("https://mit-license.org/")
}
}
issueManagement {
system.set("GitHub Issues")
url.set("https://github.com/ArkoSammy12/monkey-config/issues")
}
developers {
developer {
id.set("ArkoSammy12")
//name.set("")
//email.set("")
}
}
scm {
connection.set("scm:git:git://github.com:ArkoSammy12/monkey-config.git")
developerConnection.set("scm:git:ssh://github.com:ArkoSammy12/monkey-config.git")
url.set("https://github.com/ArkoSammy12/monkey-config")
}
}
}
}
}