Skip to content

Commit bf495be

Browse files
dtsaryovodrotbohm
authored andcommitted
GH-1140 - Fix Kotlin examples for module and named interfaces declarations and dependencies.
Signed-off-by: daniil.tsaryov@jetbrains.com
1 parent eb5cfbe commit bf495be

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

src/docs/antora/modules/ROOT/pages/fundamentals.adoc

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,16 @@ Kotlin::
242242
+
243243
[source, kotlin, role="secondary", chomp="none"]
244244
----
245-
@org.springframework.modulith.ApplicationModule(
245+
package example.inventory
246+
247+
import org.springframework.modulith.ApplicationModule
248+
import org.springframework.modulith.PackageInfo
249+
250+
@ApplicationModule(
246251
type = Type.OPEN
247252
)
248-
package example.inventory
253+
@PackageInfo
254+
class ModuleMetadata {}
249255
----
250256
======
251257

@@ -358,10 +364,16 @@ Kotlin::
358364
+
359365
[source, kotlin, role="secondary", chomp="none"]
360366
----
361-
@org.springframework.modulith.ApplicationModule(
367+
package example.inventory
368+
369+
import org.springframework.modulith.ApplicationModule
370+
import org.springframework.modulith.PackageInfo
371+
372+
@ApplicationModule(
362373
allowedDependencies = "order :: spi"
363374
)
364-
package example.inventory
375+
@PackageInfo
376+
class ModuleMetadata {}
365377
----
366378
======
367379

@@ -387,10 +399,16 @@ Kotlin::
387399
+
388400
[source, kotlin, role="secondary", chomp="none"]
389401
----
390-
@org.springframework.modulith.ApplicationModule(
402+
package example.inventory
403+
404+
import org.springframework.modulith.ApplicationModule
405+
import org.springframework.modulith.PackageInfo
406+
407+
@ApplicationModule(
391408
allowedDependencies = "order :: *"
392409
)
393-
package example.inventory
410+
@PackageInfo
411+
class ModuleMetadata {}
394412
----
395413
======
396414

0 commit comments

Comments
 (0)