xref: /aosp_15_r20/external/kotlinx.atomicfu/integration-testing/examples/mpp-sample/build.gradle.kts (revision 68017707106cb9da9fed635c150bc497c09c160f)
1 /*
2  * Copyright 2016-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
<lambda>null5 buildscript {
6     repositories {
7         mavenLocal()
8         mavenCentral()
9     }
10 
11     dependencies {
12         classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${libs.versions.atomicfuVersion.get()}")
13     }
14 }
15 
16 group = "kotlinx.atomicfu.examples"
17 version = "DUMMY_VERSION"
18 
<lambda>null19 plugins {
20     kotlin("multiplatform") version libs.versions.kotlinVersion.get()
21     `maven-publish`
22 }
23 
24 apply(plugin = "kotlinx-atomicfu")
25 
<lambda>null26 repositories {
27     mavenCentral()
28     maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
29     mavenLocal()
30 }
31 
<lambda>null32 kotlin {
33     jvm()
34 
35     js()
36 
37     wasmJs {}
38     wasmWasi {}
39 
40     macosArm64()
41     macosX64()
42     linuxArm64()
43     linuxX64()
44     mingwX64()
45 
46     sourceSets {
47         commonMain {
48             dependencies {
49                 implementation(kotlin("stdlib"))
50                 implementation(kotlin("test-junit"))
51             }
52         }
53         commonTest {}
54     }
55 }
56 
<lambda>null57 publishing {
58     repositories {
59         /**
60          * Maven repository in build directory to store artifacts for using in functional tests.
61          */
62         maven("build/.m2/") {
63             name = "local"
64         }
65     }
66 
67     publications {
68         create<MavenPublication>("maven") {
69             groupId = "kotlinx.atomicfu.examples"
70             artifactId = "mpp-sample"
71 
72             from(components["kotlin"])
73         }
74     }
75 }
76