Prepare for release 0.5.0
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
Change Log
|
Change Log
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
## Version 0.5.0
|
||||||
|
|
||||||
|
_2020-08-29_
|
||||||
|
|
||||||
|
* Support for Kotlin/Native.
|
||||||
|
|
||||||
## Version 0.4.0
|
## Version 0.4.0
|
||||||
|
|
||||||
_2020-08-21_
|
_2020-08-21_
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
|
|
||||||
Kotlin Compiler Plugin which high-jacks Kotlin assert function calls and
|
Kotlin Compiler Plugin which high-jacks Kotlin assert function calls and
|
||||||
transforms them similar to [Groovy's Power Assert feature][groovy-power-assert].
|
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
|
## Example
|
||||||
|
|
||||||
@@ -75,7 +76,7 @@ Builds of the Gradle plugin are available through the
|
|||||||
```kotlin
|
```kotlin
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") version "1.4.0"
|
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
|
## Kotlin IR
|
||||||
|
|
||||||
Using this compiler plugin only works if the code is compiled using Kotlin
|
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
|
1.4.0 and IR is enabled. This includes all IR based compiler backends: JVM, JS,
|
||||||
SourceSet if desired. As Kotlin IR is still experimental, mileage may vary.
|
and Native! As Kotlin IR is still experimental, mileage may vary.
|
||||||
|
|
||||||
|
##### Kotlin/JVM
|
||||||
```kotlin
|
```kotlin
|
||||||
compileTestKotlin {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
useIR = true
|
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
|
[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
|
[kotlin-power-assert-gradle]: https://plugins.gradle.org/plugin/com.bnorm.power.kotlin-power-assert
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "com.bnorm.power"
|
group = "com.bnorm.power"
|
||||||
version = "0.5.0-SNAPSHOT"
|
version = "0.5.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
|||||||
+2
-2
@@ -35,13 +35,13 @@ class PowerAssertGradlePlugin : KotlinCompilerPluginSupportPlugin {
|
|||||||
override fun getPluginArtifact(): SubpluginArtifact = SubpluginArtifact(
|
override fun getPluginArtifact(): SubpluginArtifact = SubpluginArtifact(
|
||||||
groupId = "com.bnorm.power",
|
groupId = "com.bnorm.power",
|
||||||
artifactId = "kotlin-power-assert-plugin",
|
artifactId = "kotlin-power-assert-plugin",
|
||||||
version = "0.5.0-SNAPSHOT"
|
version = "0.5.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
|
override fun getPluginArtifactForNative(): SubpluginArtifact = SubpluginArtifact(
|
||||||
groupId = "com.bnorm.power",
|
groupId = "com.bnorm.power",
|
||||||
artifactId = "kotlin-power-assert-plugin-native",
|
artifactId = "kotlin-power-assert-plugin-native",
|
||||||
version = "0.5.0-SNAPSHOT"
|
version = "0.5.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
override fun applyToCompilation(
|
override fun applyToCompilation(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform") version "1.4.0"
|
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 {
|
repositories {
|
||||||
|
|||||||
Reference in New Issue
Block a user