Updating buildscript to own DSL and migrating to own git repo
This commit is contained in:
parent
eac4ae0eef
commit
f822e686ed
18
.github/workflows/build-lib.yml
vendored
18
.github/workflows/build-lib.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: Library building
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-lib:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: landgrafhomyak/maven2github-redirector/build-mp-lib@actions-v1.0
|
|
||||||
with:
|
|
||||||
group: ru.landgrafhomyak.utility
|
|
||||||
name: int-serializers
|
|
||||||
version: "1.0"
|
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/gradlew*
|
/gradlew*
|
||||||
/build/
|
/build/
|
||||||
|
/.kotlin/
|
@ -1,90 +1,54 @@
|
|||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
||||||
|
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.defineAllMultiplatformTargets
|
||||||
|
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.defineXomrkGiteaMavenRepo
|
||||||
|
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.plugin.xomrk
|
||||||
|
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.setCompatibilityWithKotlin
|
||||||
|
import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.warningsAsErrors
|
||||||
|
|
||||||
plugins {
|
buildscript {
|
||||||
kotlin("multiplatform") version "1.9.0"
|
repositories {
|
||||||
`maven-publish`
|
mavenCentral()
|
||||||
|
maven("https://maven.landgrafhomyak.ru/")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath("ru.landgrafhomyak.kotlin:kotlin-mpp-gradle-build:v0.2k2.0.20")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "ru.landgrafhomyak.utility"
|
group = "ru.landgrafhomyak.utility"
|
||||||
version = "1.0"
|
version = "1.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://maven.landgrafhomyak.ru/")
|
maven("https://maven.landgrafhomyak.ru/")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xomrk {
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm {
|
warningsAsErrors()
|
||||||
|
setCompatibilityWithKotlin(KotlinVersion.KOTLIN_1_7)
|
||||||
|
|
||||||
jvmToolchain(8)
|
jvmToolchain(8)
|
||||||
withJava()
|
defineAllMultiplatformTargets()
|
||||||
}
|
|
||||||
js {
|
|
||||||
browser()
|
|
||||||
nodejs()
|
|
||||||
}
|
|
||||||
|
|
||||||
linuxArm64()
|
|
||||||
linuxX64()
|
|
||||||
mingwX64()
|
|
||||||
androidNativeArm32()
|
|
||||||
androidNativeArm64()
|
|
||||||
androidNativeX64()
|
|
||||||
androidNativeX86()
|
|
||||||
|
|
||||||
macosArm64()
|
|
||||||
macosX64()
|
|
||||||
iosArm64()
|
|
||||||
iosSimulatorArm64()
|
|
||||||
iosX64()
|
|
||||||
ios()
|
|
||||||
tvos()
|
|
||||||
watchos()
|
|
||||||
|
|
||||||
// wasm()
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val commonMain by getting {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val commonTest by getting {
|
commonTest {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test"))
|
implementation(kotlin("test"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
val jvmMain by getting {
|
|
||||||
dependsOn(commonMain)
|
|
||||||
}
|
|
||||||
val jvmTest by getting {
|
|
||||||
dependsOn(commonTest)
|
|
||||||
}
|
|
||||||
|
|
||||||
val _commonImplMain by creating {
|
|
||||||
dependsOn(commonMain)
|
|
||||||
}
|
|
||||||
val _commonImplTest by creating {
|
|
||||||
dependsOn(commonTest)
|
|
||||||
}
|
|
||||||
|
|
||||||
this
|
|
||||||
.filter { ss -> ss.name.endsWith("Main") }
|
|
||||||
.filter { ss -> ss.name !in arrayOf("commonMain", "jvmMain", "_commonImplMain") }
|
|
||||||
.forEach { ss -> ss.dependsOn(_commonImplMain) }
|
|
||||||
this
|
|
||||||
.filter { ss -> ss.name.endsWith("Test") }
|
|
||||||
.filter { ss -> ss.name !in arrayOf("commonTest", "jvmTest", "_commonImplTest") }
|
|
||||||
.forEach { ss -> ss.dependsOn(_commonImplTest) }
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompilationTask<*>>().all {
|
publishing {
|
||||||
compilerOptions.freeCompilerArgs.addAll(
|
repositories {
|
||||||
"-Xno-call-assertions",
|
defineXomrkGiteaMavenRepo()
|
||||||
"-Xno-param-assertions",
|
}
|
||||||
"-Xno-receiver-assertions"
|
}
|
||||||
)
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user