Skip to content

Commit

Permalink
Fix tests. Port serialization. Unfortunately the canary is still needed
Browse files Browse the repository at this point in the history
when reading.
  • Loading branch information
pdvrieze committed Nov 2, 2018
1 parent 4595b45 commit 179459e
Show file tree
Hide file tree
Showing 49 changed files with 1,365 additions and 1,620 deletions.
5 changes: 2 additions & 3 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/runConfigurations/testXml__JVM_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ allprojects {
maven("https://dl.bintray.com/jetbrains/spek")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
/*
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
*/
}

idea {
Expand Down
70 changes: 0 additions & 70 deletions core/android/build.gradle.kts

This file was deleted.

55 changes: 11 additions & 44 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
* see <http://www.gnu.org/licenses/>.
*/

/*
* Copyright (c) 2018.
*
* This file is part of ProcessManager.
*
* ProcessManager is free software: you can redistribute it and/or modify it under the terms of version 3 of the
* GNU Lesser General Public License as published by the Free Software Foundation.
*
* ProcessManager 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with ProcessManager. If not,
* see <http://www.gnu.org/licenses/>.
*/

import com.jfrog.bintray.gradle.BintrayExtension
import net.devrieze.gradle.ext.doPublish
import net.devrieze.gradle.ext.fromPreset
Expand Down Expand Up @@ -72,6 +56,8 @@ val serializationVersion: String by project

val kotlin_version: String by project

val androidAttribute = Attribute.of("net.devrieze.android", Boolean::class.javaObjectType)

kotlin {
targets {
fromPreset(presets["jvm"], "jvm") {
Expand All @@ -80,8 +66,16 @@ kotlin {
jvmTarget = "1.8"
}
}
attributes.attribute(androidAttribute, false)
}
fromPreset(presets["jvm"], "android") {
attributes.attribute(androidAttribute, true)
compilations.all {
tasks.getByName<KotlinCompile>(compileKotlinTaskName).kotlinOptions {
jvmTarget = "1.6"
}
}
}
fromPreset(presets["jvm"], "android") {}
fromPreset(presets["js"], "js") {
compilations.all {
tasks.getByName<KotlinJsCompile>(compileKotlinTaskName).kotlinOptions {
Expand Down Expand Up @@ -183,30 +177,3 @@ extensions.configure<BintrayExtension>("bintray") {

}


/*
val jvmSourcesJar = task<Jar>("jvmSourcesJar") {
from(sourceSets["jvmMain"].allSource)
}
val androidSourcesJar = task<Jar>("androidSourcesJar") {
from(sourceSets["androidMain"].allSource)
}
val jsSourcesJar = task<Jar>("jsSourcesJar") {
from(sourceSets["jsMain"].allSource)
}
val commonSourcesJar = task<Jar>("commonSourcesJar") {
from(sourceSets["commonMain"].allSource)
}
*/

//val sourcesJar = task<Jar>("mySourcesJar") {
// from(sourceSets["main"].allSource)
//}


//doPublish(sourcesJar, "xmlutil-common")

48 changes: 0 additions & 48 deletions core/common-nonshared/build.gradle.kts

This file was deleted.

53 changes: 0 additions & 53 deletions core/common/build.gradle.kts

This file was deleted.

50 changes: 0 additions & 50 deletions core/java/build.gradle.kts

This file was deleted.

Loading

0 comments on commit 179459e

Please sign in to comment.