Commit Graph

175 Commits

Author SHA1 Message Date
Brian Norman 9d2ff1f2de Merge pull request #102 from bnorm/versions
Update to Gradle 8.4 and sample to Kotlin 1.9.20
2023-11-05 16:19:55 -06:00
Brian Norman 464e1dfbf5 GitHub matrix for tryK2 2023-11-05 15:49:05 -06:00
Brian Norman fd99f4967d Update to Gradle 8.4 and sample to Kotlin 1.9.20 2023-11-05 15:42:16 -06:00
Brian Norman 0edde8ad7b Update sample to Kotlin 1.9 (#98) 2023-07-10 06:19:47 -05:00
Brian Norman 4c708fe295 Prepare next development version 2023-05-06 09:35:51 -05:00
Brian Norman 6c1fc46c2e Prepare for release 0.13.0 2023-05-06 09:27:48 -05:00
Brian Norman 7ef97177aa Correctly align contains operators (#96) 2023-04-10 15:40:51 -05:00
Brian Norman 9efc600fa1 Initial support for K2 compiler frontend (#92) 2023-04-09 10:35:46 -05:00
Christoph Sturm 7bdf25f4dd Kotlin 1.8.20 (#89)
* kotlin 1.8.2

* also lint build scripts

* rename irUtils => IrUtils to make ktlint happy

* fix sample: ./gradlew kotlinUpgradeYarnLock
2023-04-08 19:42:15 -05:00
Brian Norman 6d5643daaa Prepare next development version 2023-04-08 19:31:37 -05:00
Brian Norman 4b18bf5546 Prepare for release 0.12.1 2023-04-08 19:24:14 -05:00
Christoph Sturm 87b209ab91 bump kotlinter to 3.14 and ktlint action to 1.5.1 (#86)
* add kotlinter 3.14

* force trailing commas

* bump ktlint action to 1.5.1

* run ./gradlew formatKotlin

* disable kotlinter plugin because it triggers a problem in the kotlin compiler
2023-04-07 07:42:43 -05:00
Róbert Papp 36fe1734bd Gradle 8 (#87)
* Fix deprecation warning in KAPT

> Task :kotlin-power-assert-plugin:kaptTestKotlin
Annotation processors discovery from compile classpath is deprecated.
Set 'kapt.include.compile.classpath=false' to disable discovery.

* Fix kotlinc warning in InfixFunctionTest

> Task :kotlin-power-assert-plugin:compileTestKotlin
w: P:\projects\contrib\github-kotlin-power-assert\kotlin-power-assert-plugin\src\test\kotlin\com\bnorm\power\InfixFunctionTest.kt: (357, 9): Name shadowed: main

* Fix kotlinc warning in PowerAssertCallTransformer

> Task :kotlin-power-assert-plugin:compileKotlin
w: P:\projects\contrib\github-kotlin-power-assert\kotlin-power-assert-plugin\src\main\kotlin\com\bnorm\power\PowerAssertCallTransformer.kt: (174, 77): Name shadowed: newVariables

* Fix Gradle 8 breaking change, add dependency between tasks.

> Task :kotlin-power-assert-gradle:publishPluginJar
Execution optimizations have been disabled for task ':kotlin-power-assert-gradle:publishPluginJar' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: 'P:\projects\contrib\github-kotlin-power-assert\kotlin-power-assert-gradle\build\generated\source\buildConfig\main\main'. Reason: Task ':kotlin-power-assert-gradle:publishPluginJar' uses this output of task ':kotlin-power-assert-gradle:generateBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Gradle detected a problem with the following location: 'P:\projects\contrib\github-kotlin-power-assert\kotlin-power-assert-gradle\build\generated\source\buildConfig\main\main'. Reason: Task ':kotlin-power-assert-gradle:publishPluginJar' uses this output of task ':kotlin-power-assert-gradle:generateBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency for more details about this problem. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. Execution optimizations are disabled to ensure correctness. See https://docs.gradle.org/7.4.2/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.

* Fix https://github.com/gmazzo/gradle-buildconfig-plugin/issues/38 by using the latest version.

* Update Gradle wrapper to 7.x latest 7.6.1

* Build URI using built-in function instead of string manipulation.

* Reduce code duplication and be a bit more explicit.

* Upgrade plugin-publish to latest 1.1.0

Action "Deprecate the entire `pluginBundle` block when using Gradle version 7.6 or later,
        mark for removal in version 8.0" from https://plugins.gradle.org/plugin/com.gradle.plugin-publish/1.0.0-rc-3

Gradle publishing has to execute publishPlugins directly, because the new version already applies the Maven Publish Plugin, that creates the task "publish", which publishes to registered repositories only.

* Add test repository to all modules (enabled by plugin-publish 1.0)

* Bump Gradle to latest 8.x stable 8.0.2

* Downgrade Gradle in sample project because of removed outdated API (details below), assuming Kotlin 1.7 to 1.8 bump is not wanted yet.

* What went wrong:
Failed to notify task execution graph listener.
> org.gradle.api.reporting.DirectoryReport.setEnabled(Z)V

Caused by: java.lang.NoSuchMethodError: org.gradle.api.reporting.DirectoryReport.setEnabled(Z)V
        at org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport.disableTestReporting(KotlinTestReport.kt:242)

https://github.com/JetBrains/kotlin/blob/v1.7.0/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/testing/internal/KotlinTestReport.kt#L242

Gradle 8.0 removed that deprecated property:
https://docs.gradle.org/current/userguide/upgrading_version_7.html#report_and_testreport_api_cleanup

Fixed in Kotlin 1.8.0: https://github.com/JetBrains/kotlin/commit/e902ae7c09639559ac734842ebe5c383ec6e6e14

Deprecation warnings in sample project are all related to this, run: `sample$ gradlew build --warning-mode=all` for more info.
2023-04-06 08:21:30 -05:00
Brian Norman 0b398d64a2 Ignore object literal internals (#85) 2023-03-30 18:48:13 -05:00
Brian Norman 9603492119 Exclude implicit vararg arrays from diagram (#84) 2023-03-30 18:18:21 -05:00
Christoph Sturm be90be58eb configure to run tests in parallel and eliminate global state (#73)
* bump junit, run tests in parallel.

* fix global state by not using System.out
2023-03-01 08:38:53 -06:00
Brian Norman 2f5064176e Merge pull request #72 from bnorm/workflow
Update GitHub workflows
2022-09-11 12:46:53 -05:00
Brian Norman 1133c842ab Combine build and validation 2022-09-11 12:40:20 -05:00
Brian Norman 5fd863d217 Init qodana and limit PR workflow jobs 2022-09-11 12:25:50 -05:00
Brian Norman 7920c6c6f5 Update GitHub workflows 2022-09-11 11:07:14 -05:00
Brian Norman 78bdd908eb Merge pull request #71 from bnorm/remove-native-plugin
Remove Kotlin/Native specific compiler plugin artifact
2022-09-11 11:06:14 -05:00
Brian Norman e98b9c1ce3 Remove Kotlin/Native specific compiler plugin artifact 2022-08-02 23:11:02 -05:00
Brian Norman 6b6b1dd1c8 Merge pull request #69 from bnorm/infix-receiver
Support transforming infix functions
2022-08-02 22:51:34 -05:00
Brian Norman 3d0919b3f3 Support dispatch infix functions 2022-08-01 22:34:03 -05:00
Brian Norman b5d8143f4c Initial support for infix target functions 2022-07-31 12:44:47 -05:00
Brian Norman cd9fb4c089 Create failing unit test for transforming infix functions 2022-07-13 14:07:19 -05:00
Brian Norman d61adc845b Prepare next development version 2022-07-10 13:45:25 -05:00
Brian Norman d131b2bff3 Fix Dokka publishing 2022-07-10 13:44:22 -05:00
Brian Norman b77abbe1bf Prepare for release 0.12.0 2022-07-10 13:18:02 -05:00
Brian Norman f4793f251a Merge pull request #64 from bnorm/exclude-sourcesets
Allow excluding Kotlin source sets from transformation
2022-06-15 22:12:20 -05:00
Brian Norman ee1370925f Allow excluding Kotlin source sets from transformation 2022-06-15 22:04:18 -05:00
Brian Norman ee05aaa7e3 Merge pull request #66 from bnorm/kotlin-1.7
Support Kotlin 1.7.0
2022-06-15 21:35:18 -05:00
Brian Norman beb1ee724a Support Kotlin 1.7.0 2022-06-14 10:28:08 -05:00
Brian Norman a38f430bc9 Merge pull request #61 from bnorm/type-operations
Fix type operation diagrams
2022-03-13 15:23:43 -05:00
Brian Norman 3661217ff4 Fix type operation diagrams 2022-03-13 15:09:05 -05:00
Brian Norman 49972b8cad Merge pull request #53 from bnorm/junit5
Support JVM static functions
2022-03-13 12:16:17 -05:00
Brian Norman 19ec7ed665 Merge pull request #54 from TWiStErRob/patch-1
Fix link to Advanced section
2021-11-27 14:23:32 -06:00
Róbert Papp aac1016588 Fix link to Advanced section 2021-11-27 13:58:52 +00:00
Brian Norman c6c3830418 ktlint errors 2021-11-26 16:00:33 -06:00
Brian Norman 52ebc56f44 Add section on Kotlin version compatibility to README 2021-11-26 15:44:04 -06:00
Brian Norman 2179d1e80a Support message lambda as a local variable 2021-11-26 15:09:26 -06:00
Brian Norman 479f37276c Support Java Suppliers as message arguments 2021-11-26 14:37:56 -06:00
Brian Norman e346df26d3 Switch to JUnit 5 as test runner 2021-11-26 14:02:24 -06:00
Brian Norman 2e5de9f58e Prepare next development version 2021-11-18 21:49:29 -06:00
Brian Norman 5a1b70bd91 Prepare for release 0.11.0 2021-11-18 21:46:30 -06:00
Brian Norman f6291d8b00 Merge pull request #51 from bnorm/kotlin-1.6.0
Update to Kotlin 1.6.0
2021-11-18 21:32:09 -06:00
Brian Norman ebd56df819 Update to Kotlin 1.6.0 2021-11-18 21:26:57 -06:00
Brian Norman 1f67ead0f7 Prepare next development version 2021-06-29 21:13:00 -05:00
Brian Norman 76f56031c7 Prepare for release 0.10.0 2021-06-29 21:08:06 -05:00
Brian Norman ecc641f76f Merge pull request #48 from bnorm/kotlin-1.5.20
Kotlin 1.5.20
2021-06-29 09:42:48 -05:00