diff --git a/README.md b/README.md index 02199f2..1c4d990 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Because library uses undocumented compiler api that often changes each library v | DI.kt version | Supported kotlin versions | |---------------|----------------------------------| -| 1.1.0-alpha4 | 1.8.0 - 1.8.10 (k2 with new api) | +| 1.1.0-alpha5 | 1.8.0 - 1.8.10 (k2 with new api) | | 1.0.3 | 1.8.0 - 1.8.10 (k2 with hacks) | | 1.0.2 | 1.7.0 - 1.7.21 | | 1.0.1 | 1.6.2x | @@ -54,7 +54,15 @@ In build.gradle file in module add plugin: ```groovy plugins { ... - id 'io.github.sergeshustoff.dikt' version '1.1.0-alpha4' + id 'io.github.sergeshustoff.dikt' version '1.1.0-alpha5' +} +``` + +Or use this if you only need base api without code generation (Injectable and InjectableSingleInScope interfaces): + +```groovy +dependencies { + implementation "io.github.sergeshustoff.dikt:dikt:1.1.0-alpha5" } ``` @@ -144,7 +152,7 @@ This interface can be used in project without dikt compiler plugin: ```groovy dependencies { - implementation 'io.github.sergeshustoff.dikt:dikt:1.1.0-alpha4' + implementation 'io.github.sergeshustoff.dikt:dikt:1.1.0-alpha5' } ``` diff --git a/dikt-gradle-plugin/src/main/kotlin/dev/shustoff/dikt/gradle/DiktGradlePlugin.kt b/dikt-gradle-plugin/src/main/kotlin/dev/shustoff/dikt/gradle/DiktGradlePlugin.kt index 0db81d5..884875f 100644 --- a/dikt-gradle-plugin/src/main/kotlin/dev/shustoff/dikt/gradle/DiktGradlePlugin.kt +++ b/dikt-gradle-plugin/src/main/kotlin/dev/shustoff/dikt/gradle/DiktGradlePlugin.kt @@ -14,8 +14,6 @@ class DiktGradlePlugin : KotlinCompilerPluginSupportPlugin { target.afterEvaluate { project -> project.configurations.filter { it.name.endsWith("implementation", ignoreCase = true) }.forEach { project.dependencies.add(it.name, project.dependencies.create("io.github.sergeshustoff.dikt:dikt-internal:$version")) - } - project.configurations.filter { it.name.endsWith("api", ignoreCase = true) }.forEach { project.dependencies.add(it.name, project.dependencies.create("io.github.sergeshustoff.dikt:dikt:$version")) } } @@ -40,7 +38,7 @@ class DiktGradlePlugin : KotlinCompilerPluginSupportPlugin { } companion object { - private const val version = "1.1.0-alpha4" + private const val version = "1.1.0-alpha5" } } diff --git a/gradle.properties b/gradle.properties index cfcd00e..1731e98 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,8 +8,8 @@ org.gradle.jvmargs=-Xmx3g kotlin_version=1.8.10 # don't forget to update DiktGradlePlugin -dikt_version=1.1.0-alpha4 -VERSION_NAME=1.1.0-alpha4 +dikt_version=1.1.0-alpha5 +VERSION_NAME=1.1.0-alpha5 dikt_sample_version=1.1.0-alpha4 GROUP=io.github.sergeshustoff.dikt