-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (47 loc) · 1.24 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
import lol.dimensional.gradle.dsl.ReleaseType
import lol.dimensional.gradle.dsl.Version
buildscript {
repositories {
maven("https://maven.dimensional.fun/releases")
}
dependencies {
classpath("fun.dimensional.gradle:gradle-tools:1.1.2")
}
}
plugins {
`maven-publish`
kotlin("multiplatform") version "1.8.0"
}
val moduleVersion = Version(1, 0, 0, release = ReleaseType.Final)
project.group = "fun.dimensional"
project.version = moduleVersion.asString()
repositories {
mavenCentral()
}
kotlin {
explicitApi()
jvm()
mingwX64()
linuxX64()
sourceSets["commonMain"].dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
sourceSets["jvmMain"].dependencies {
implementation(kotlin("stdlib-jdk8"))
}
}
publishing {
repositories {
maven {
url = uri(moduleVersion.repository.fullUrl)
authentication {
create<BasicAuthentication>("basic")
}
credentials {
username = System.getenv("REPO_ALIAS")?.toString()
password = System.getenv("REPO_TOKEN")?.toString()
}
}
}
}