-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle.kts
83 lines (70 loc) · 1.99 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
plugins {
kotlin("multiplatform") version "2.0.0"
`maven-publish`
signing
}
group = "io.github.exav"
repositories {
mavenCentral()
}
kotlin {
sourceSets {
jsMain {
}
jsTest {
dependencies {
implementation(kotlin("test"))
}
}
}
js {
nodejs {
binaries.library()
testTask {
}
}
}
}
publishing {
publications.configureEach {
if (this is MavenPublication) {
pom {
name.set("screeps-kotlin-types")
description.set("The repository for Screep's Kotlin type definitions. https://screeps.com/")
url.set("https://github.com/exaV/screeps-kotlin-types")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/mit-license.php")
}
}
scm {
connection.set("scm:git:git://github.com/exaV/screeps-kotlin-types.git")
developerConnection.set("scm:git:ssh://github.com/exaV/screeps-kotlin-types.git")
url.set("https://github.com/exaV/screeps-kotlin-types")
}
developers {
developer {
name.set("Patrick Del Conte")
organizationUrl.set("https://github.com/exaV")
}
}
}
}
}
repositories {
maven {
url = uri(System.getenv("MAVEN_URL") ?: "")
credentials {
username = System.getenv("MAVEN_USERNAME") ?: ""
password = System.getenv("MAVEN_PASSWORD") ?: ""
}
}
}
}
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications)
}