core/build.gradle.kts
changeset 86 ed5dfac18c84
parent 74 57d9068de0ef
child 106 e121390a16d3
equal deleted inserted replaced
85:0c23a1d2e16a 86:ed5dfac18c84
    17  * GNU General Public License for more details.
    17  * GNU General Public License for more details.
    18  *
    18  *
    19  * You should have received a copy of the GNU General Public License
    19  * You should have received a copy of the GNU General Public License
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
    21  */
    21  */
    22 import org.jetbrains.kotlin.gradle.dsl.JvmTarget
       
    23 
    22 
    24 plugins {
    23 plugins {
    25     id("com.android.library")
    24     id("com.geekorum.build.conventions.mpp-library-with-android")
    26     kotlin("multiplatform")
       
    27     id("com.geekorum.build.source-license-checker")
       
    28     alias(libs.plugins.kotlinx.serialization)
    25     alias(libs.plugins.kotlinx.serialization)
    29     id("com.geekorum.build.maven-publish")
    26     id("com.geekorum.build.maven-publish")
    30     id("com.geekorum.build.dokka")
    27     id("com.geekorum.build.dokka")
    31 }
    28 }
    32 
    29 
    33 group = "com.geekorum.aboutoss"
       
    34 version = "0.1.0"
       
    35 
       
    36 kotlin {
    30 kotlin {
    37     androidTarget {
    31     androidTarget()
    38         compilerOptions {
       
    39             jvmTarget.set(JvmTarget.JVM_17)
       
    40         }
       
    41     }
       
    42 
    32 
    43     jvm("desktop")
    33     jvm("desktop")
    44 
    34 
    45     listOf(
    35     listOf(
    46         iosX64(),
    36         iosX64(),
    62     }
    52     }
    63 }
    53 }
    64 
    54 
    65 android {
    55 android {
    66     namespace = "com.geekorum.aboutoss.core"
    56     namespace = "com.geekorum.aboutoss.core"
    67     compileSdk = 35
       
    68 
    57 
    69     defaultConfig {
    58     defaultConfig {
    70         minSdk = 24
       
    71 
       
    72         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    59         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    73         consumerProguardFiles("consumer-rules.pro")
    60         consumerProguardFiles("consumer-rules.pro")
    74         aarMetadata {
       
    75             minCompileSdk = 24
       
    76         }
       
    77     }
    61     }
    78 
    62 
    79     buildTypes {
    63     buildTypes {
    80         release {
    64         release {
    81             isMinifyEnabled = false
    65             isMinifyEnabled = false
    82             proguardFiles(
    66             proguardFiles(
    83                 getDefaultProguardFile("proguard-android-optimize.txt"),
    67                 getDefaultProguardFile("proguard-android-optimize.txt"),
    84                 "proguard-rules.pro"
    68                 "proguard-rules.pro"
    85             )
    69             )
    86         }
    70         }
    87     }
       
    88     compileOptions {
       
    89         sourceCompatibility = JavaVersion.VERSION_17
       
    90         targetCompatibility = JavaVersion.VERSION_17
       
    91     }
    71     }
    92 
    72 
    93     publishing {
    73     publishing {
    94         singleVariant("release") {
    74         singleVariant("release") {
    95             withJavadocJar()
    75             withJavadocJar()