Using the helper library in buildscript and fixing package
This commit is contained in:
parent
f55bea6bcc
commit
77f99c6e59
@ -1,82 +1,40 @@
|
||||
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
||||
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.defineAllMultiplatformTargets
|
||||
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.optInContracts
|
||||
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.defineXomrkGiteaMavenRepo
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven("https://maven.landgrafhomyak.ru/")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath("ru.landgrafhomyak.kotlin:kotlin-mpp-gradle-build-helper:v0.1k2.0.20")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "2.0.20"
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = "ru.landgrafhomyak.kotlin.utilities"
|
||||
group = "ru.landgrafhomyak.kotlin"
|
||||
version = "v1.0k2.0.20"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://maven.landgrafhomyak.ru/")
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalWasmDsl::class)
|
||||
kotlin {
|
||||
explicitApi()
|
||||
|
||||
jvmToolchain(8)
|
||||
jvm {
|
||||
}
|
||||
js(IR) {
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
wasmWasi {
|
||||
nodejs()
|
||||
}
|
||||
wasmJs {
|
||||
nodejs()
|
||||
browser()
|
||||
d8()
|
||||
}
|
||||
|
||||
macosArm64()
|
||||
macosX64()
|
||||
linuxArm64()
|
||||
linuxX64()
|
||||
mingwX64()
|
||||
androidNativeArm32()
|
||||
androidNativeArm64()
|
||||
androidNativeX64()
|
||||
androidNativeX86()
|
||||
iosArm64()
|
||||
iosSimulatorArm64()
|
||||
iosX64()
|
||||
tvosX64()
|
||||
tvosArm64()
|
||||
tvosSimulatorArm64()
|
||||
watchosX64()
|
||||
watchosArm32()
|
||||
watchosArm64()
|
||||
watchosDeviceArm64()
|
||||
watchosSimulatorArm64()
|
||||
|
||||
sourceSets {
|
||||
commonMain {
|
||||
dependencies {
|
||||
}
|
||||
}
|
||||
}
|
||||
optInContracts()
|
||||
defineAllMultiplatformTargets()
|
||||
}
|
||||
|
||||
publishing {
|
||||
// other settings of publication
|
||||
repositories {
|
||||
maven {
|
||||
name = "XomrkMaven"
|
||||
url = uri("https://git.landgrafhomyak.ru/api/packages/xomrk/maven/")
|
||||
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = "Authorization"
|
||||
value = "token ${System.getenv("XOMRK_MAVEN_REPO_DEPLOY_TOKEN")}"
|
||||
}
|
||||
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
}
|
||||
}
|
||||
defineXomrkGiteaMavenRepo()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user