Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit a4c425b

Browse files
committed
Prepare for release 0.5.0
1 parent 65a8ce6 commit a4c425b

File tree

5 files changed

+31
-12
lines changed

5 files changed

+31
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Change Log
22
==========
33

4+
## Version 0.5.0
5+
6+
_2020-08-29_
7+
8+
* Support for Kotlin/Native.
9+
410
## Version 0.4.0
511

612
_2020-08-21_

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Kotlin Compiler Plugin which high-jacks Kotlin assert function calls and
66
transforms them similar to [Groovy's Power Assert feature][groovy-power-assert].
7-
This plugin uses the new IR backend for the Kotlin compiler.
7+
This plugin uses the IR backend for the Kotlin compiler and supports all
8+
platforms: JVM, JS, and Native!
89

910
## Example
1011

@@ -75,7 +76,7 @@ Builds of the Gradle plugin are available through the
7576
```kotlin
7677
plugins {
7778
kotlin("jvm") version "1.4.0"
78-
id("com.bnorm.power.kotlin-power-assert") version "0.4.0"
79+
id("com.bnorm.power.kotlin-power-assert") version "0.5.0"
7980
}
8081
```
8182

@@ -93,16 +94,28 @@ configure<com.bnorm.power.PowerAssertGradleExtension> {
9394
## Kotlin IR
9495

9596
Using this compiler plugin only works if the code is compiled using Kotlin
96-
1.4.0 and IR is enabled. IR can be enabled only when compiling the test
97-
SourceSet if desired. As Kotlin IR is still experimental, mileage may vary.
97+
1.4.0 and IR is enabled. This includes all IR based compiler backends: JVM, JS,
98+
and Native! As Kotlin IR is still experimental, mileage may vary.
9899

100+
##### Kotlin/JVM
99101
```kotlin
100-
compileTestKotlin {
101-
kotlinOptions {
102-
useIR = true
103-
}
102+
tasks.withType<KotlinCompile>().configureEach {
103+
kotlinOptions {
104+
useIR = true
105+
}
104106
}
105107
```
106108

109+
##### Kotlin/JS
110+
```kotlin
111+
target {
112+
js(IR) {
113+
}
114+
}
115+
```
116+
117+
##### Kotlin/Native
118+
IR already enabled by default!
119+
107120
[groovy-power-assert]: https://groovy-lang.org/testing.html#_power_assertions
108121
[kotlin-power-assert-gradle]: https://plugins.gradle.org/plugin/com.bnorm.power.kotlin-power-assert

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
allprojects {
88
group = "com.bnorm.power"
9-
version = "0.5.0-SNAPSHOT"
9+
version = "0.5.0"
1010
}
1111

1212
subprojects {

kotlin-power-assert-gradle/src/main/kotlin/com/bnorm/power/PowerAssertGradlePlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class PowerAssertGradlePlugin : KotlinCompilerPluginSupportPlugin {
3535
override fun getPluginArtifact(): SubpluginArtifact = SubpluginArtifact(
3636
groupId = "com.bnorm.power",
3737
artifactId = "kotlin-power-assert-plugin",
38-
version = "0.5.0-SNAPSHOT"
38+
version = "0.5.0"
3939
)
4040

4141
override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
4242
groupId = "com.bnorm.power",
4343
artifactId = "kotlin-power-assert-plugin-native",
44-
version = "0.5.0-SNAPSHOT"
44+
version = "0.5.0"
4545
)
4646

4747
override fun applyToCompilation(

sample/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
kotlin("multiplatform") version "1.4.0"
3-
id("com.bnorm.power.kotlin-power-assert") version "0.4.0"
3+
id("com.bnorm.power.kotlin-power-assert") version "0.5.0"
44
}
55

66
repositories {

0 commit comments

Comments
 (0)