Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Add devtools support #532

Closed
Closed
@sdeleuze

Description

@sdeleuze
Contributor

Activity

added this to the 0.9.1 milestone on Feb 28, 2021
added a commit that references this issue on Feb 28, 2021
modified the milestones: 0.9.1, 0.10.0 on Mar 3, 2021
modified the milestones: 0.11.0, 0.10.0 on Mar 15, 2021
Ortega-Dan

Ortega-Dan commented on Mar 15, 2021

@Ortega-Dan

I just want to subscribe to this issue, but doing it by asking a question.
First of all, thanks all for this awesome project ! This is really awesome for the Java ecosystem.
Second, the question ... no pressure, but as a way to add information on what is going on:
Is there any estimated time for this feature ?
What is missing ? or what can be done to help with this ?

Haarolean

Haarolean commented on Mar 28, 2021

@Haarolean

I'm gonna post this here to let others who google this stuff will know a workaround:

Could not generate spring.factories source code: Devtools is not supported yet, please remove the related dependency for now.
Let's assume you're building an image for prod and not planning running it locally with devtools.
You could do this:

Create 2 maven profiles, one for prod (native image), the other one for local debug

<profiles>
    <profile>
        <id>native</id>
        <dependencies>
            <dependency>
                <groupId>org.springframework.experimental</groupId>
                <artifactId>spring-native</artifactId>
                <version>${spring-native.version}</version>
            </dependency>
        </dependencies>
    </profile>
    <profile>
        <id>local</id>
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-devtools</artifactId>
                <scope>runtime</scope>
                <optional>true</optional>
            </dependency>
        </dependencies>
    </profile>
</profiles>

Now you can activate one of the profiles for different purposes.
Also you can add this to activate one of the profiles by default:

<profile>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
</profile>
assigned and unassigned on Apr 27, 2021

8 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jamesward@bclozel@sdeleuze@snicoll@Haarolean

      Issue actions

        Add devtools support · Issue #532 · spring-attic/spring-native