christiandeange / kgp-150-leak-patcher

A simple plugin to patch the memory leak in Kotlin Gradle Plugin 1.5.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

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

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

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.

About

A simple plugin to patch the memory leak in Kotlin Gradle Plugin 1.5.0

License:Apache License 2.0


Languages

Language:Kotlin 100.0%