Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added arrow to mpp
  • Loading branch information
sksamuel committed Aug 16, 2019
1 parent 73f760a commit ecb4725
Show file tree
Hide file tree
Showing 213 changed files with 98 additions and 30 deletions.
69 changes: 55 additions & 14 deletions kotlintest-assertions/kotlintest-assertions-arrow/build.gradle
@@ -1,33 +1,74 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.multiplatform'
id 'java-library'
id 'maven-publish'
id 'signing'
}

apply plugin: 'kotlin-kapt'

repositories {
mavenCentral()
}

dependencies {
compile project(":kotlintest-assertions")
compile "io.arrow-kt:arrow-extras-extensions:$arrow_version"
compile "io.arrow-kt:arrow-validation:$arrow_version"
compile "io.arrow-kt:arrow-generic:$arrow_version"
compile "io.arrow-kt:arrow-effects-io-extensions:$arrow_version"
kapt "io.arrow-kt:arrow-meta:$arrow_version"
kaptTest "io.arrow-kt:arrow-meta:$arrow_version"
testCompile project(":kotlintest-runner:kotlintest-runner-junit5")
kotlin {

jvm()
js()

sourceSets {

commonMain {
dependencies {
implementation kotlin("stdlib-common")
api project(":kotlintest-assertions")
implementation project(':kotlintest-core')
}
}

jsMain {
dependencies {
implementation kotlin('stdlib-js')
}
}

jvmMain {
dependencies {
implementation project(":kotlintest-assertions")
implementation "io.arrow-kt:arrow-extras-extensions:$arrow_version"
api "io.arrow-kt:arrow-validation:$arrow_version"
api "io.arrow-kt:arrow-generic:$arrow_version"
implementation "io.arrow-kt:arrow-effects-io-extensions:$arrow_version"
}
}

jvmTest {
dependencies {
implementation project(':kotlintest-runner:kotlintest-runner-junit5')
}
}
}
}

compileKotlinJs.configure {
kotlinOptions {
moduleKind = 'commonjs'
}
}

compileTestKotlinJs.configure {
kotlinOptions {
moduleKind = 'commonjs'
}
}

compileKotlin {
compileKotlinJvm {
kotlinOptions {
freeCompilerArgs += '-Xuse-experimental=kotlin.Experimental'
}
}

//dependencies {
// kapt "io.arrow-kt:arrow-meta:$arrow_version"
// kaptTest "io.arrow-kt:arrow-meta:$arrow_version"
//}

apply from: '../../publish.gradle'
59 changes: 43 additions & 16 deletions kotlintest-tests/kotlintest-tests-core/build.gradle
Expand Up @@ -7,28 +7,55 @@ buildscript {

plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.multiplatform'
id 'java-library'
id 'maven-publish'
id 'signing'
}

repositories {
mavenCentral()
mavenLocal()
}

dependencies {
testImplementation project(':kotlintest-core')
testImplementation project(':kotlintest-assertions')
testImplementation project(':kotlintest-runner:kotlintest-runner-junit5')
testImplementation project(':kotlintest-assertions:kotlintest-assertions-arrow')
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.2'
testImplementation "com.nhaarman:mockito-kotlin:1.6.0"
testImplementation 'org.mockito:mockito-core:2.24.0'
// this is here to test that the intellij marker 'dummy' test doesn't appear in intellij
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.4.0'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.4.0'
}

kotlin {

jvm()
js()

sourceSets {

jvmTest {
dependencies {
implementation project(':kotlintest-core')
implementation project(':kotlintest-assertions')
implementation project(':kotlintest-runner:kotlintest-runner-junit5')
implementation project(':kotlintest-assertions:kotlintest-assertions-arrow')
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.2'
implementation "com.nhaarman:mockito-kotlin:1.6.0"
implementation 'org.mockito:mockito-core:2.24.0'
// this is here to test that the intellij marker 'dummy' test doesn't appear in intellij
implementation 'org.junit.jupiter:junit-jupiter-engine:5.4.0'
implementation 'org.junit.jupiter:junit-jupiter-api:5.4.0'
}
}
}
}

compileKotlinJs.configure {
kotlinOptions {
moduleKind = 'commonjs'
}
}

compileTestKotlinJs.configure {
kotlinOptions {
moduleKind = 'commonjs'
}
}

compileKotlinJvm {
kotlinOptions {
freeCompilerArgs += '-Xuse-experimental=kotlin.Experimental'
}
}

test {
Expand Down

0 comments on commit ecb4725

Please sign in to comment.