Prepare for release 0.5.0

This commit is contained in:
Brian Norman
2020-08-29 19:13:52 -05:00
parent 65a8ce62c6
commit a4c425bb2a
5 changed files with 31 additions and 12 deletions
+6
View File
@@ -1,6 +1,12 @@
Change Log
==========
## Version 0.5.0
_2020-08-29_
* Support for Kotlin/Native.
## Version 0.4.0
_2020-08-21_
+21 -8
View File
@@ -4,7 +4,8 @@
Kotlin Compiler Plugin which high-jacks Kotlin assert function calls and
transforms them similar to [Groovy's Power Assert feature][groovy-power-assert].
This plugin uses the new IR backend for the Kotlin compiler.
This plugin uses the IR backend for the Kotlin compiler and supports all
platforms: JVM, JS, and Native!
## Example
@@ -75,7 +76,7 @@ Builds of the Gradle plugin are available through the
```kotlin
plugins {
kotlin("jvm") version "1.4.0"
id("com.bnorm.power.kotlin-power-assert") version "0.4.0"
id("com.bnorm.power.kotlin-power-assert") version "0.5.0"
}
```
@@ -93,16 +94,28 @@ configure<com.bnorm.power.PowerAssertGradleExtension> {
## Kotlin IR
Using this compiler plugin only works if the code is compiled using Kotlin
1.4.0 and IR is enabled. IR can be enabled only when compiling the test
SourceSet if desired. As Kotlin IR is still experimental, mileage may vary.
1.4.0 and IR is enabled. This includes all IR based compiler backends: JVM, JS,
and Native! As Kotlin IR is still experimental, mileage may vary.
##### Kotlin/JVM
```kotlin
compileTestKotlin {
kotlinOptions {
useIR = true
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
useIR = true
}
}
```
##### Kotlin/JS
```kotlin
target {
js(IR) {
}
}
```
##### Kotlin/Native
IR already enabled by default!
[groovy-power-assert]: https://groovy-lang.org/testing.html#_power_assertions
[kotlin-power-assert-gradle]: https://plugins.gradle.org/plugin/com.bnorm.power.kotlin-power-assert
+1 -1
View File
@@ -6,7 +6,7 @@ plugins {
allprojects {
group = "com.bnorm.power"
version = "0.5.0-SNAPSHOT"
version = "0.5.0"
}
subprojects {
@@ -35,13 +35,13 @@ class PowerAssertGradlePlugin : KotlinCompilerPluginSupportPlugin {
override fun getPluginArtifact(): SubpluginArtifact = SubpluginArtifact(
groupId = "com.bnorm.power",
artifactId = "kotlin-power-assert-plugin",
version = "0.5.0-SNAPSHOT"
version = "0.5.0"
)
override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
groupId = "com.bnorm.power",
artifactId = "kotlin-power-assert-plugin-native",
version = "0.5.0-SNAPSHOT"
version = "0.5.0"
)
override fun applyToCompilation(
+1 -1
View File
@@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform") version "1.4.0"
id("com.bnorm.power.kotlin-power-assert") version "0.4.0"
id("com.bnorm.power.kotlin-power-assert") version "0.5.0"
}
repositories {