-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
96 lines (78 loc) · 2.42 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
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.SonatypeHost
plugins {
java
signing
id("com.vanniktech.maven.publish") version "0.30.0"
}
group = "io.codef.api"
version = "2.0.0-beta-005"
signing {
useInMemoryPgpKeys(
System.getenv("GPG_PRIVATE_KEY"),
System.getenv("GPG_PASSPHRASE")
)
sign(publishing.publications)
}
repositories {
mavenCentral()
}
mavenPublishing {
configure(JavaLibrary(JavadocJar.Javadoc(), true))
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
coordinates("io.codef.api", "easycodef-java-v2", version.toString())
pom {
url = "api.codef.io"
name = "easycodef-java-v2"
description = "Advanced EasyCodef Library for Java"
inceptionYear = "2024"
licenses {
license {
name = "MIT License"
url = "https://opensource.org/licenses/MIT"
distribution = "https://opensource.org/licenses/MIT"
}
}
developers {
developer {
id = "happybean"
name = "Haebin Byeon"
email = "[email protected]"
}
}
scm {
connection = "scm:git:[email protected]:codef-io/easycodef-java-v2.git"
developerConnection = "scm:git:ssh://github.com/codef-io/easycodef-java-v2.git"
url = "https://github.com/codef-io/easycodef-java-v2"
}
issueManagement {
system = "GitHub"
url = "https://github.com/codef-io/easycodef-java-v2/issues"
}
}
}
dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2")
implementation("com.alibaba:fastjson:2.0.54")
implementation("commons-codec:commons-codec:1.17.2")
implementation("org.apache.httpcomponents.client5:httpclient5:5.4.1")
implementation("ch.qos.logback:logback-classic:1.5.16")
implementation("ch.qos.logback:logback-core:1.5.16")
implementation("org.slf4j:slf4j-api:2.0.16")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.test {
useJUnitPlatform()
}
tasks.register("printVersion") {
doLast {
println(project.version)
}
}