-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
122 lines (104 loc) · 3.79 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import java.util.*
plugins {
kotlin("jvm") version "1.8.21"
`java-library`
`maven-publish`
id("io.gitlab.arturbosch.detekt") version "1.23.6"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1"
id("org.jetbrains.dokka") version "1.9.20"
signing
}
group = "io.iohk.atala"
repositories {
mavenCentral()
}
dependencies {
val serenityVersion = "4.1.20"
api("javax.inject:javax.inject:1")
api("junit:junit:4.13.2")
api("net.serenity-bdd:serenity-core:$serenityVersion")
api("net.serenity-bdd:serenity-ensure:$serenityVersion")
api("net.serenity-bdd:serenity-cucumber:$serenityVersion")
api("net.serenity-bdd:serenity-screenplay:$serenityVersion")
api("net.serenity-bdd:serenity-screenplay-rest:$serenityVersion")
api("ch.qos.logback:logback-classic:1.5.6")
api("org.slf4j:slf4j-api:2.0.7")
api("io.ktor:ktor-client-core-jvm:2.3.1")
api("com.jayway.jsonpath:json-path:2.9.0")
api("org.awaitility:awaitility:4.2.0")
api("org.jetbrains.kotlin:kotlin-reflect:1.8.22")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
testImplementation("org.wiremock:wiremock-standalone:3.7.0")
}
kotlin {
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>(rootProject.name) {
from(components["java"])
groupId = "io.iohk.atala"
artifactId = name
version = project.version.toString()
pom {
name.set("Atala PRISM Automation Helpers")
description.set("Automation helpers for PRISM identity ecosystem.")
url.set("https://docs.atalaprism.io/")
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("amagyar-iohk")
name.set("Allain Magyar")
email.set("[email protected]")
}
developer {
id.set("antonbaliasnikov")
name.set("Anton Baliasnikov")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://input-output-hk/atala-automation.git")
developerConnection.set("scm:git:ssh://input-output-hk/atala-automation.git")
url.set("https://github.com/input-output-hk/atala-automation")
}
}
}
}
}
kotlin {
jvmToolchain(11)
}
detekt {
buildUponDefaultConfig = true
config.setFrom("detekt.yml") // point to your custom config defining rules to run, overwriting default behavior
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("SONATYPE_USERNAME"))
password.set(System.getenv("SONATYPE_PASSWORD"))
}
}
}
signing {
val base64EncodedAsciiArmoredSigningKey: String = System.getenv("BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN") ?: ""
val signingKeyPassword: String = System.getenv("SIGNING_KEY_PASSWORD") ?: ""
if (base64EncodedAsciiArmoredSigningKey.isNotEmpty()) {
useInMemoryPgpKeys(String(Base64.getDecoder().decode(base64EncodedAsciiArmoredSigningKey.toByteArray())), signingKeyPassword)
sign(publishing.publications)
}
}
tasks.dokkaHtml.configure {
outputDirectory.set(projectDir.resolve("docs"))
}