generated from kotlingang/kotlin-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
47 lines (39 loc) · 1.11 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
import org.jetbrains.kotlin.konan.properties.loadProperties
plugins {
id(Deps.Plugins.Configuration.Kotlin.Mpp)
id(Deps.Plugins.Deploy.Id)
}
group = AppInfo.PACKAGE
version = AppInfo.VERSION
allprojects {
repositories {
mavenCentral()
}
}
kotlin {
jvm()
sourceSets {
val commonMain by getting {
kotlin.srcDir("src/main/kotlin")
resources.srcDir("src/main/resources")
}
}
}
val deployProperties = rootProject.file("deploy.properties")
deploy {
if (!deployProperties.exists())
ignore = true
else {
val properties = loadProperties(deployProperties.absolutePath)
host = properties["host"] as String?
user = properties["user"] as String?
password = properties["password"] as String?
deployPath = properties["deployPath"] as String?
componentName = "kotlin"
group = AppInfo.PACKAGE
version = AppInfo.VERSION
artifactId = "implier"
name = "implier"
description = "Kotlin codegeneration library for Mutable & Immutable objects from interfaces."
}
}