@@ -28,7 +28,7 @@ output = [
2828- a plugin system for the JVM
2929 - written in pure Kotlin, might port to Kotlin Multiplatform [ someday] ( https://github.com/diffplug/atplug/issues/1 ) .
3030- that generates all plugin metadata for you
31- - write Java/Kotlin/Scala code, * never* write error-prone metadata
31+ - write Java/Kotlin/Scala code, * never* write error-prone metadata manually
3232- lets you filter the available plugins based on their metadata
3333 - defer classloading to the last possible instant
3434- easy mocking for unit tests
@@ -37,8 +37,8 @@ AtPlug has three components:
3737
3838- a small runtime ` com.diffplug.atplug:atplug-runtime `
3939- a buildtime step which generates plugin metadata
40- -Gradle plugin: [ ` com.diffplug.atplug ` ] ( https://plugins.gradle.org/plugin/com.diffplug.atplug )
41- -Contributions welcome for maven, etc.
40+ - Gradle plugin: [ ` com.diffplug.atplug ` ] ( https://plugins.gradle.org/plugin/com.diffplug.atplug )
41+ - Contributions welcome for maven, etc.
4242- a harness for mocking in tests ` com.diffplug.atplug:atplug-test-harness `
4343 - built-in support for JUnit5, PRs for other test frameworks welcome
4444
@@ -74,7 +74,7 @@ To take advantage of this, we need to an object `Shape.Socket : SocketOwner` whi
7474interface Shape {
7575 object Socket : SocketOwner.SingletonById<Shape>(Shape : :class.java) {
7676 const val KEY_SVG_ICON = " svgIcon"
77- override fun metadata (plug : Fruit ) = mapOf (
77+ override fun metadata (plug : Shape ) = mapOf (
7878 Pair (KEY_ID , plug.name()),
7979 Pair (KEY_SVG_ICON , plug.previewSvgIcon()))
8080 }
0 commit comments