-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
92 lines (75 loc) · 2.56 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
92 lines (75 loc) · 2.56 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
application
id("io.freefair.lombok") version "8.6"
id("com.google.protobuf") version "0.9.5"
kotlin("jvm") version "1.9.24"
`maven-publish`
}
group = "com.github.dedinc.aiocryptopay"
version = "1.0"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
// HTTP Client
api("com.squareup.okhttp3:okhttp:4.12.0")
// JSON Processing
api("com.fasterxml.jackson.core:jackson-databind:2.19.1")
api("com.fasterxml.jackson.core:jackson-core:2.19.1")
api("com.fasterxml.jackson.core:jackson-annotations:2.19.1")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.19.1")
// Hashing
api("commons-codec:commons-codec:1.18.0")
// Testing
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
testImplementation("org.mockito:mockito-core:5.18.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.18.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.github.dedinc"
artifactId = "aiocryptopay"
version = "1.0"
from(components["java"])
// Configure POM for proper transitive dependency resolution
pom {
name.set("AioCryptoPay")
description.set("A Java library for the AioCryptoPay API")
url.set("https://github.com/DedInc/aiocryptopay")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("dedinc")
name.set("DedInc")
email.set("visitanimation@gmail.com")
}
}
scm {
connection.set("scm:git:git://github.com/DedInc/aiocryptopay.git")
developerConnection.set("scm:git:ssh://github.com:DedInc/aiocryptopay.git")
url.set("https://github.com/DedInc/aiocryptopay/tree/main")
}
}
}
}
}