Skip to content

Commit

Permalink
Try to tidy up the native build system more. This includes not
Browse files Browse the repository at this point in the history
building wasm in all modes (host mode).
  • Loading branch information
pdvrieze committed Jan 2, 2024
1 parent 789ba1d commit 86055ad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 72 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2018.
* Copyright (c) 2024.
*
* This file is part of XmlUtil.
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
Expand Down Expand Up @@ -69,7 +69,6 @@ allprojects {
}
mavenLocal()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")}
google()
}

Expand Down
18 changes: 1 addition & 17 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023.
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
Expand All @@ -20,7 +20,6 @@

import net.devrieze.gradle.ext.*
import org.gradle.api.attributes.java.TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -124,21 +123,6 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmWasi {
nodejs()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
nodejs()
browser {
testTask {
isEnabled = ! System.getenv().containsKey("GITHUB_ACTION")
}
}
}

targets.all {
mavenPublication {
version = xmlutil_core_version
Expand Down
19 changes: 1 addition & 18 deletions serialization/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023.
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
Expand All @@ -26,7 +26,6 @@ import net.devrieze.gradle.ext.applyDefaultXmlUtilHierarchyTemplate
import net.devrieze.gradle.ext.configureDokka
import net.devrieze.gradle.ext.doPublish
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget

plugins {
Expand Down Expand Up @@ -104,22 +103,6 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmWasi {
nodejs()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName="core-wasm"
nodejs()
browser {
testTask {
isEnabled = ! System.getenv().containsKey("GITHUB_ACTION")
}
}
}

targets.all {
if (this is KotlinJvmTarget) {
testRuns.all {
Expand Down
18 changes: 1 addition & 17 deletions serialutil/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023.
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
Expand All @@ -24,7 +24,6 @@ import net.devrieze.gradle.ext.addNativeTargets
import net.devrieze.gradle.ext.applyDefaultXmlUtilHierarchyTemplate
import net.devrieze.gradle.ext.configureDokka
import net.devrieze.gradle.ext.doPublish
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -77,21 +76,6 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmWasi {
nodejs()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
nodejs()
browser {
testTask {
isEnabled = !System.getenv().containsKey("GITHUB_ACTION")
}
}
}

targets.all {
mavenPublication {
version = xmlutil_util_version
Expand Down
18 changes: 1 addition & 17 deletions testutil/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023.
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
Expand All @@ -23,7 +23,6 @@
import net.devrieze.gradle.ext.addNativeTargets
import net.devrieze.gradle.ext.configureDokka
import net.devrieze.gradle.ext.doPublish
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -72,21 +71,6 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmWasi {
nodejs()
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
nodejs()
browser {
testTask {
isEnabled = ! System.getenv().containsKey("GITHUB_ACTION")
}
}
}

sourceSets {
val commonMain by getting {
dependencies {
Expand Down

0 comments on commit 86055ad

Please sign in to comment.