Skip to content

Commit

Permalink
Convert to a multiplatform module
Browse files Browse the repository at this point in the history
Etch support is only in JVM, but the helper utils are in common
  • Loading branch information
hufman committed Mar 23, 2024
1 parent 36dd262 commit 7706011
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 24 deletions.
41 changes: 19 additions & 22 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,40 @@ plugins {
}
apply from: '../buildtools/ColoredOutput.gradle'
apply from: '../buildtools/jacoco.gradle'
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'kotlin-multiplatform'
apply plugin: 'maven-publish'

kotlin {
jvm {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
sourceSets {
commonMain {

implementation project(path: ':etch')
}
}
commonTest {
dependencies {
implementation 'junit:junit:4.12'
}
}
jvmMain {
dependencies {
implementation project(path: ':etch')
}

}
}
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

// https://youtrack.jetbrains.com/issue/IDEA-119280
tasks.register('copyTestResources', Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test"
}
tasks.register('copyTestResourcesOut', Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/../out/test/classes"
}
// doesn't seem to actually work, you should run this step manually
processTestResources.dependsOn copyTestResources
processTestResources.dependsOn copyTestResourcesOut

publishing {
publications {
maven(MavenPublication) {
// publish to Jitpack
groupId 'io.bimmergestalt'
artifactId 'IDriveConnectKit'
version '0.6'

from components.java
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import org.junit.Assert.*
import org.junit.Test
import org.w3c.dom.Node
import java.lang.IndexOutOfBoundsException
import kotlin.test.BeforeTest
import kotlin.test.expect

class TestXMLParsing {
val xml = this.javaClass.classLoader.getResourceAsStream("ui_layout.xml")!!.bufferedReader().use {
Expand Down
File renamed without changes.

0 comments on commit 7706011

Please sign in to comment.