Skip to content

Commit edb9c9f

Browse files
authored
Merge pull request quarkusio#50808 from devjos/extension-writing-dev-service-isproduction
Replace deprecated IsNormal in the guide for writing dev services
2 parents d0df0cb + 9dca4f7 commit edb9c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/main/asciidoc/extension-writing-dev-service.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Here, the https://hub.docker.com/_/hello-world[`hello-world`] image is used, but
4848

4949
[source,java]
5050
----
51-
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = DevServicesConfig.Enabled.class)
51+
@BuildSteps(onlyIf = { IsDevServicesSupportedByLaunchMode.class, DevServicesConfig.Enabled.class })
5252
public DevServicesResultBuildItem createContainer() {
5353
DockerImageName dockerImageName = DockerImageName.parse("hello-world");
5454
GenericContainer container = new GenericContainer<>(dockerImageName)
@@ -118,7 +118,7 @@ For example,
118118

119119
[source,java]
120120
----
121-
@BuildStep(onlyIfNot = IsNormal.class, onlyIf = DevServicesConfig.Enabled.class)
121+
@BuildSteps(onlyIf = { IsDevServicesSupportedByLaunchMode.class, DevServicesConfig.Enabled.class })
122122
public DevServicesResultBuildItem createContainer(MyConfig config) {}
123123
----
124124

0 commit comments

Comments
 (0)