forked from RepreZen/KaiZen-OpenApi-Parser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
60 lines (51 loc) · 1.51 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
plugins {
java
kotlin("jvm")
id("maven-publish")
kotlin("plugin.serialization") version "1.8.10"
}
dependencies {
val jacksonVersion = property("jackson.version") as String
implementation(project(":json-overlay"))
implementation("com.wakaztahir:kate:1.0.16")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
}
fun RepositoryHandler.githubPackages(){
maven("https://maven.pkg.github.com/Qawaz/K-OpenApi-Parser") {
name = "GithubPackages"
try {
credentials {
username = (System.getenv("GPR_USER")).toString()
password = (System.getenv("GPR_API_KEY")).toString()
}
} catch (e: Exception) {
e.printStackTrace()
}
}
}
subprojects {
apply(plugin = "maven-publish")
afterEvaluate {
publishing {
publications {
register<MavenPublication>("release") {
from(components["kotlin"])
}
}
repositories {
githubPackages()
}
}
}
}
allprojects {
group = "com.wakaztahir.openapi"
version = property("version") as String
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots/")
mavenCentral()
githubPackages()
}
}