Skip to content

Commit

Permalink
Kgp 1.7.0 (#58)
Browse files Browse the repository at this point in the history
* Closes #55

* Workaround for ListProperty::addAllLater

Closes #55
  • Loading branch information
mpetuska authored Sep 11, 2022
1 parent 31431dc commit 5d3c362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ internal fun ProjectEnhancer.configure(target: KotlinJsTargetDsl) {
if (target !is KotlinJsIrTarget) {
warn { "${target.name} Kotlin/JS target is not using IR compiler - skipping..." }
} else {

extension.packages.register(target.name) { pkg ->
val binary = provider<JsIrBinary> {
when (val it = target.binaries.find { it.mode == KotlinJsBinaryMode.PRODUCTION }) {
Expand Down Expand Up @@ -106,4 +105,8 @@ private fun ProjectEnhancer.resolveDependencies(
version.set(dependency.version)
}
}
}.let {
objects.listProperty(NpmDependency::class.java).apply {
addAll(it)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.gradle.api.NamedDomainObjectContainer
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
import kotlin.math.abs

/**
* A simple representation of a npm dependency
Expand Down Expand Up @@ -58,11 +57,6 @@ public interface NpmDependency : NamedInput {
PEER,
DEV,
NORMAL;

/**
* Type priority in descending order
*/
public inline val priority: Int get() = abs(0 - ordinal)
}
}

Expand Down

0 comments on commit 5d3c362

Please sign in to comment.