plugins { kotlin("multiplatform") version "1.8.10" id("com.android.library") id("EmojiPlugin") id("maven-publish") } group = "dev.usbharu" version = "2.0.0" repositories { google() mavenCentral() } kotlin { jvm { jvmToolchain(8) testRuns["test"].executionTask.configure { useJUnitPlatform() } } js(BOTH) { browser() nodejs() } android{ publishLibraryVariants("release") } sourceSets { val commonMain by getting { sourceSets["commonMain"].kotlin.srcDir("build/generated/source/emoji/main/kotlin") kotlin.srcDir("build/generated/emoji/source/main/kotlin") } val commonTest by getting { dependencies { implementation(kotlin("test")) } } val jvmMain by getting val jvmTest by getting val jsMain by getting val jsTest by getting val androidMain by getting val androidTest by getting { dependencies { implementation("junit:junit:4.13.2") } } } } android { compileSdkVersion(31) sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") defaultConfig { minSdkVersion(24) targetSdkVersion(31) } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } lintOptions { isAbortOnError = false } } publishing{ repositories{ maven{ name = "GitHubPackages" url = uri("https://maven.pkg.github.com/multim-dev/emoji-kt") credentials { username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME") password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN") } } } repositories { maven { name = "Gitea" url = uri("https://git.usbharu.dev/api/packages/usbharu/maven") credentials(HttpHeaderCredentials::class.java) { name = "Authorization" value = "token "+(project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA")) } authentication { create("header") } } } }