GH-1138 - Fix Kotlin examples for module and named interfaces declarations and dependencies.
Signed-off-by: daniil.tsaryov@jetbrains.com
This commit is contained in:
committed by
Oliver Drotbohm
parent
3442afd4eb
commit
4fa434fcf2
@@ -242,10 +242,16 @@ Kotlin::
|
||||
+
|
||||
[source, kotlin, role="secondary", chomp="none"]
|
||||
----
|
||||
@org.springframework.modulith.ApplicationModule(
|
||||
package example.inventory
|
||||
|
||||
import org.springframework.modulith.ApplicationModule
|
||||
import org.springframework.modulith.PackageInfo
|
||||
|
||||
@ApplicationModule(
|
||||
type = Type.OPEN
|
||||
)
|
||||
package example.inventory
|
||||
@PackageInfo
|
||||
class ModuleMetadata {}
|
||||
----
|
||||
======
|
||||
|
||||
@@ -358,10 +364,16 @@ Kotlin::
|
||||
+
|
||||
[source, kotlin, role="secondary", chomp="none"]
|
||||
----
|
||||
@org.springframework.modulith.ApplicationModule(
|
||||
package example.inventory
|
||||
|
||||
import org.springframework.modulith.ApplicationModule
|
||||
import org.springframework.modulith.PackageInfo
|
||||
|
||||
@ApplicationModule(
|
||||
allowedDependencies = "order :: spi"
|
||||
)
|
||||
package example.inventory
|
||||
@PackageInfo
|
||||
class ModuleMetadata {}
|
||||
----
|
||||
======
|
||||
|
||||
@@ -387,10 +399,16 @@ Kotlin::
|
||||
+
|
||||
[source, kotlin, role="secondary", chomp="none"]
|
||||
----
|
||||
@org.springframework.modulith.ApplicationModule(
|
||||
package example.inventory
|
||||
|
||||
import org.springframework.modulith.ApplicationModule
|
||||
import org.springframework.modulith.PackageInfo
|
||||
|
||||
@ApplicationModule(
|
||||
allowedDependencies = "order :: *"
|
||||
)
|
||||
package example.inventory
|
||||
@PackageInfo
|
||||
class ModuleMetadata {}
|
||||
----
|
||||
======
|
||||
|
||||
|
||||
Reference in New Issue
Block a user