This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
102 lines (90 loc) · 3.2 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
import cl.franciscosolis.sonatypecentralupload.SonatypeCentralUploadTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.23"
`maven-publish`
id("cl.franciscosolis.sonatype-central-upload") version "1.0.3"
id("com.google.devtools.ksp").version("1.9.23-1.0.19")
}
group = "io.github.suitetecsa.sdk"
version = "0.1.4-alpha02"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.11.0")
testImplementation("junit:junit:4.13.2")
implementation("org.jsoup:jsoup:1.17.2")
implementation("com.squareup.retrofit2:retrofit:2.10.0")
implementation("com.squareup.retrofit2:converter-moshi:2.10.0")
implementation("com.squareup.moshi:moshi-kotlin:1.15.1")
// Adaptador de Coroutines para Retrofit
implementation("com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2")
// Adaptador RxJava para Retrofit
implementation("com.squareup.retrofit2:adapter-rxjava3:2.10.0")
implementation("com.auth0:java-jwt:4.4.0")
ksp("com.squareup.moshi:moshi-kotlin-codegen:1.15.1")
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
kotlin {
jvmToolchain(17)
}
publishing {
publications {
register<MavenPublication>("maven") {
from(components["java"])
pom {
name.set(project.name)
description.set("A tool designed to interact with ETECSA services.")
url.set("http://github.com/suitetecsa/nauta-connect")
licenses {
license {
name.set("MIT License")
url.set("http://github.com/suitetecsa/nauta-connect/blob/master/LICENSE")
distribution.set("repo")
}
}
developers {
developer {
id.set("lesclaz")
name.set("Lesly Cintra")
email.set("[email protected]")
}
}
scm {
url.set("http://github.com/suitetecsa/nauta-connect/tree/master")
connection.set("scm:git:git://github.com/suitetecsa/nauta-connect.git")
developerConnection.set("scm:git:ssh://github.com/suitetecsa/nauta-connect.git")
}
}
}
}
}
tasks.named<SonatypeCentralUploadTask>("sonatypeCentralUpload") {
dependsOn("jar", "sourcesJar", "javadocJar", "generatePomFileForMavenPublication")
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
archives = files(
tasks.named("jar"),
tasks.named("sourcesJar"),
tasks.named("javadocJar"),
)
pom = file(
tasks.named("generatePomFileForMavenPublication").get().outputs.files.single()
)
signingKey = System.getenv("SIGNING_KEY")
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
}