kotlin-power-assert

Kotlin compiler plugin to enable diagrammed function calls in the Kotlin programming language

APACHE-2.0 License

Stars
566
kotlin-power-assert - v0.13.0 Latest Release

Published by bnorm over 1 year ago

New

  • Support Kotlin 1.8.20 (#89).

Fixes

  • Correctly align in operator. (#96).

plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.13.0"
}

NOTE

For those that use classpath dependencies to configure plugins, the coordinates of this release dropped the gradle.plugin suffix:

buildscript {
  dependencies {
    classpath("com.bnorm.power:kotlin-power-assert-gradle:0.13.0")
  }
}
kotlin-power-assert - v0.12.2

Published by bnorm over 1 year ago

Fixes

  • Correctly align in operator. (#95).
plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.12.2"
}
kotlin-power-assert - v0.12.1

Published by bnorm over 1 year ago

New

  • Support receivers of infix functions (#69).

Fixes

  • Ignore implicit varargs array (#84).
  • Ignore body of object literals (#85).

Other

  • Run tests in parallel (#73) - @christophsturm.
  • Upgrade to Gradle 8 (#87) - @TWiStErRob.
  • Add Kotlinter for code styling (#86) - @christophsturm.
plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.12.1"
}

NOTE

For those that use classpath dependencies to configure plugins, the coordinates of this release dropped the gradle.plugin suffix:

buildscript {
  dependencies {
    classpath("com.bnorm.power:kotlin-power-assert-gradle:0.12.1")
  }
}
kotlin-power-assert - v0.12.0

Published by bnorm over 2 years ago

New

  • Support Kotlin 1.7.0 (#67).
  • Allow excluding Gradle source sets from transformation (#55).

Fixes

  • Ignore smart casting from diagram (#60).
  • Properly align is operator result (#59).
  • Support JVM static functions for transformation (#52).
plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.12.0"
}
kotlin-power-assert - v0.11.0

Published by bnorm almost 3 years ago

New

  • Support Kotlin 1.6.0 (#50).
plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.11.0"
}
kotlin-power-assert - v0.10.0

Published by bnorm over 3 years ago

New

  • Support Kotlin 1.5.20.
plugins {
  id("com.bnorm.power.kotlin-power-assert") version "0.10.0"
}
kotlin-power-assert - v0.9.0

Published by bnorm over 3 years ago

New

  • Support Kotlin 1.5.10.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.9.0"
}
kotlin-power-assert - v0.8.1

Published by bnorm over 3 years ago

Fixes

  • Fix diagramming of expressions which contain lambdas (#44)
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.8.1"
}
kotlin-power-assert - v0.8.0

Published by bnorm over 3 years ago

New

  • Compile against Kotlin 1.5.0 (#40).
  • Support generic parameter diagramming (#39).
    • Added support for assertFalse style functions.
    • Added support for non-boolean functions.
  • Support multiple parameter functions (#41).
    • Added support for assertEquals style functions.
    • Function signature must still end with a String or () -> String accepting parameter.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.8.0"
}
kotlin-power-assert - v0.7.0

Published by bnorm over 3 years ago

New

  • Support Kotlin 1.4.30.



Fixes

  • Regex matches function formats poorly and exception (#31).
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.7.0"
}
kotlin-power-assert - v0.6.1

Published by bnorm almost 4 years ago

Fixes:

  • Better support for arithmetic in assertion condition (#27).
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.6.1"
}
kotlin-power-assert - v0.6.0

Published by bnorm almost 4 years ago

Changes:

  • Support Kotlin 1.4.20.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.6.0"
}
kotlin-power-assert - v0.5.3

Published by bnorm about 4 years ago

Bug Fixes:

  • Fix member and extension function transformation.
  • Fix generation of message lambda for non-inline functions.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.5.3"
}
kotlin-power-assert - v0.5.2

Published by bnorm about 4 years ago

Bug Fixes:

  • Skip transformation if entire expression is constant (true or false).
  • Fix inlining of lambda parameter to transformed function call on Kotlin/JS and Kotlin/Native.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.5.2"
}
kotlin-power-assert - v0.5.1

Published by bnorm about 4 years ago

Bug Fixes:

  • Support Windows-style line-separators in compiled files.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.5.1"
}
kotlin-power-assert - v0.5.0

Published by bnorm about 4 years ago

  • Support for Kotlin/Native.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.5.0"
}
kotlin-power-assert - v0.4.0

Published by bnorm about 4 years ago

  • Support Kotlin 1.4.0.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.4.0"
}
kotlin-power-assert - v0.3.1

Published by bnorm over 4 years ago

  • Fix: Including Kotlin wrapper class for top-level functions in Gradle configuration is no longer required.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.3.1"
}
kotlin-power-assert - v0.3.0

Published by bnorm over 4 years ago

  • Support Kotlin 1.3.70.
  • Fix: Including Kotlin wrapper class for top-level functions in Gradle configuration is no longer required.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.3.0"
}
kotlin-power-assert - v0.2.0

Published by bnorm over 4 years ago

Feature enhancements:

  • Support configuring of which functions are transformed (eg, assert, require,
    check, assertTrue). This works for any function which takes a Boolean and a
    String.
  • Support Boolean expressions which are split onto multiple lines.
plugins {
  id "com.bnorm.power.kotlin-power-assert" version "0.2.0"
}
Package Rankings
Top 29.13% on Repo1.maven.org
Badges
Extracted from project README
Maven Central