forked from lightningdevkit/ldk-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
111 lines (96 loc) · 3.81 KB
/
build.gradle.kts
File metadata and controls
111 lines (96 loc) · 3.81 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.*
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
// library version is defined in gradle.properties
val libraryVersion: String by project
plugins {
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.7.10"
// Apply the java-library plugin for API and implementation separation.
id("java-library")
id("maven-publish")
id("signing")
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use the Kotlin JUnit 5 integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
// Use the JUnit 5 integration.
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.1")
//// This dependency is exported to consumers, that is to say found on their compile classpath.
//api("org.apache.commons:commons-math3:3.6.1")
//// This dependency is used internally, and not exposed to consumers on their own compile classpath.
//implementation("com.google.guava:guava:31.1-jre")
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("net.java.dev.jna:jna:5.8.0")
}
tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
testLogging {
events(PASSED, SKIPPED, FAILED, STANDARD_OUT, STANDARD_ERROR)
exceptionFormat = FULL
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
}
}
afterEvaluate {
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "org.lightningdevkit"
artifactId = "ldk-node-jvm"
version = libraryVersion
from(components["java"])
pom {
name.set("ldk-node-jvm")
description.set(
"LDK Node, a ready-to-go node implementation built using LDK."
)
url.set("https://lightningdevkit.org")
licenses {
license {
name.set("APACHE 2.0")
url.set("https://github.com/lightningdevkit/ldk-node/blob/main/LICENSE-APACHE")
}
license {
name.set("MIT")
url.set("https://github.com/lightningdevkit/ldk-node/blob/main/LICENSE-MIT")
}
}
developers {
developer {
id.set("tnull")
name.set("Elias Rohrer")
email.set("tnull@noreply.github.org")
}
developer {
id.set("jurvis")
name.set("Jurvis Tan")
email.set("jurvis@noreply.github.org")
}
}
scm {
connection.set("scm:git:github.com/lightningdevkit/ldk-node.git")
developerConnection.set("scm:git:ssh://github.com/lightningdevkit/ldk-node.git")
url.set("https://github.com/lightningdevkit/ldk-node/tree/main")
}
}
}
}
}
}
signing {
val signingKeyId: String? by project
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign(publishing.publications)
}