/* * This file is part of GNU Taler * (C) 2020 Taler Systems S.A. * * GNU Taler is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 3, or (at your option) any later version. * * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * GNU Taler; see the file COPYING. If not, see */ plugins { id 'org.jetbrains.kotlin.multiplatform' id 'org.jetbrains.kotlin.plugin.serialization' } group 'net.taler' version '0.0.1' apply plugin: 'maven-publish' kotlin { explicitApi() jvm() js { browser { } nodejs { } } ios { binaries { framework() } } linuxX64("linux") sourceSets { def serialization_version = "1.0.0-RC" commonMain { dependencies { implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version" implementation "com.soywiz.korlibs.klock:klock:1.12.0" } } commonTest { dependencies { implementation kotlin('test-common') implementation kotlin('test-annotations-common') } } jvmMain { dependencies { } } jvmTest { dependencies { implementation kotlin('test') implementation kotlin('test-junit') } } jsMain { dependencies { } } jsTest { dependencies { implementation kotlin('test-js') } } nativeMain { dependsOn commonMain dependencies { } } nativeTest { dependsOn commonTest } configure([targets.linux, targets.iosArm64, targets.iosX64]) { compilations.main.source(sourceSets.nativeMain) compilations.test.source(sourceSets.nativeTest) } } } configurations { compileClasspath }