DepsKt

Facilitates sharing and managing current versions of popular libraries across projects using a Gradle convention plugin. Offers static type checking and IDE support for seamless integration.

JVM
JS
GitHub stars4
Dependents0
LicenseApache License 2.0
Creation dateover 8 years ago

Last activityabout 23 hours ago
Latest release0.0.02 (over 3 years ago)

DepsKt

This repo allows to easily share current versions of well known libraries for Kotlin/Java/Android between projects. It's a gradle "convention plugin": https://docs.gradle.org/current/samples/sample_convention_plugins.html

Usage:

  • Add id("pl.mareklangiewicz.deps.settings") to your plugins in settings.gradle.kts
  • Or add id("pl.mareklangiewicz.deps") to your plugins in build.gradle.kts (for more local access)
  • Example
    // in settings.gradle.kts:
    // ...
    plugins {
      // ...
      id("pl.mareklangiewicz.deps.settings") version "X.X.XX"
      // find version here: https://plugins.gradle.org/search?term=mareklangiewicz.deps
      // ...
    }
  • Then just use predefined kotlin objects (and util functions) in your build files.
  • Example
    plugins {
      plugAll(plugs.KotlinJvm, plugs.VannikPublish)
    }
    
    dependencies {
      api(Com.SquareUp.Okio.okio)
      testImplementation(kotlin("test"))
      testImplementation(Org.JUnit.Jupiter.junit_jupiter_engine)
      testRuntimeOnly(Org.JUnit.Platform.junit_platform_launcher)
    }
    

Notes

  • It's a statically checked Kotlin code, so you should have full IDE support
  • If you don't want to use it all, you can still just bookmark one file
    • github:Deps.kt to quickly check current versions of popular libraries
  • There is also another file with a few additional versions that are updated manually:
JVM
JS
GitHub stars4
Dependents0
LicenseApache License 2.0
Creation dateover 8 years ago

Last activityabout 23 hours ago
Latest release0.0.02 (over 3 years ago)

DepsKt

This repo allows to easily share current versions of well known libraries for Kotlin/Java/Android between projects. It's a gradle "convention plugin": https://docs.gradle.org/current/samples/sample_convention_plugins.html

Usage:

  • Add id("pl.mareklangiewicz.deps.settings") to your plugins in settings.gradle.kts
  • Or add id("pl.mareklangiewicz.deps") to your plugins in build.gradle.kts (for more local access)
  • Example
    // in settings.gradle.kts:
    // ...
    plugins {
      // ...
      id("pl.mareklangiewicz.deps.settings") version "X.X.XX"
      // find version here: https://plugins.gradle.org/search?term=mareklangiewicz.deps
      // ...
    }
  • Then just use predefined kotlin objects (and util functions) in your build files.
  • Example
    plugins {
      plugAll(plugs.KotlinJvm, plugs.VannikPublish)
    }
    
    dependencies {
      api(Com.SquareUp.Okio.okio)
      testImplementation(kotlin("test"))
      testImplementation(Org.JUnit.Jupiter.junit_jupiter_engine)
      testRuntimeOnly(Org.JUnit.Platform.junit_platform_launcher)
    }
    

Notes

  • It's a statically checked Kotlin code, so you should have full IDE support
  • If you don't want to use it all, you can still just bookmark one file
    • github:Deps.kt to quickly check current versions of popular libraries
  • There is also another file with a few additional versions that are updated manually: