forked from Writeopia/Writeopia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
97 lines (81 loc) · 2.27 KB
/
build.gradle.kts
File metadata and controls
97 lines (81 loc) · 2.27 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
93
94
95
96
97
import com.vanniktech.maven.publish.SonatypeHost
val sdkVersion: String by rootProject.extra
plugins {
kotlin("multiplatform")
alias(libs.plugins.dokka)
alias(libs.plugins.ktlint)
alias(libs.plugins.sonatype.publish)
}
mavenPublishing {
val artifactId = "writeopia-core"
coordinates(
groupId = "io.writeopia",
artifactId = artifactId,
version = sdkVersion
)
pom {
name = artifactId
description = "Core module of Writeopia"
url = "https://writeopia.io"
developers {
developer {
id = "leandroBorgesFerreira"
name = "Leandro Borges Ferreira"
url = "https://github.com/leandroBorgesFerreira"
}
}
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
scm {
connection = "scm:[email protected]:leandroBorgesFerreira/Writeopia.git"
developerConnection = "scm:git:ssh://github.com/leandroBorgesFerreira/Writeopia.git"
url = "https://github.com/leandroBorgesFerreira/Writeopia"
}
}
signAllPublications()
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = false)
}
kotlin {
jvm {}
js(IR) {
browser()
binaries.library()
}
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "Writeopia"
isStatic = true
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":writeopia_models"))
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.datetime)
}
}
val commonTest by getting {
dependencies {
implementation(libs.kotlin.test)
implementation(libs.kotlinx.coroutines.test)
}
}
val jvmMain by getting {
dependencies {
}
}
val jsMain by getting {
dependencies {
}
}
}
}