KGP 1.5.0 Leak Patcher

A simple Gradle plugin that auto-patches the memory leak in Kotlin Gradle Plugin 1.5.0.

License

License

GroupId

GroupId

dev.zacsweers
ArtifactId

ArtifactId

kgp-150-leak-patcher
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

KGP 1.5.0 Leak Patcher
A simple Gradle plugin that auto-patches the memory leak in Kotlin Gradle Plugin 1.5.0.
Project URL

Project URL

https://github.com/ZacSweers/kgp-150-leak-patcher/
Source Code Management

Source Code Management

https://github.com/ZacSweers/kgp-150-leak-patcher/

Download kgp-150-leak-patcher

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.5.0

Project Modules

There are no modules declared in this project.

kgp-150-leak-patcher

A simple plugin to automatically patch the memory leak in Kotlin Gradle Plugin 1.5.0 in https://youtrack.jetbrains.com/issue/KT-46368.

Implementation based on David Burström's workaround here.

Usage

Apply the plugin in the root build.gradle file, no other configuration needed. It is only applicable for KGP 1.5.0 (not 1.4.32, should be fixed in 1.5.10). Any other version will print a warning and no-op.

The minimum required Gradle version is 6.1.

plugins {
  id("dev.zacsweers.kgp-150-leak-patcher") version "1.1.0"
}

// Or legacy way
buildscript {
  dependencies {
    classpath("dev.zacsweers:kgp-150-leak-patcher:1.1.0")
  }
}

apply(plugin = "dev.zacsweers.kgp-150-leak-patcher")

If you need to disable the applicability check for some reason, it can be disabled by setting the kgp15leak.checkApplicability property to false.

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright (C) 2021 Zac Sweers

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
1.1.0
1.0.1
1.0.0