Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 16:18
    sivaprasadreddy edited #806
  • Jan 31 2019 16:18
    sivaprasadreddy edited #806
  • Jan 31 2019 16:17
    sivaprasadreddy opened #806
  • Jan 31 2019 15:32
  • Jan 31 2019 15:14

    snicoll on new-generator

    Adapt to latest API change Move InitializrDefaultStarterBu… (compare)

  • Jan 31 2019 10:42

    snicoll on new-generator

    Switch project structure to use… (compare)

  • Jan 31 2019 10:34

    snicoll on master

    Upgrade to JUnit 5.4.0-RC1 Split metadata specific excepti… (compare)

  • Jan 31 2019 09:43

    snicoll on master

    Initiate 0.8.0.BUILD-SNAPSHOT v… (compare)

  • Jan 31 2019 08:13
    phoenigm starred spring-io/initializr
  • Jan 31 2019 03:43
  • Jan 31 2019 03:04

    mbhave on new-generator

    Adapt tests to use new API Customize build version based o… (compare)

  • Jan 30 2019 19:28
    mbhave closed #805
  • Jan 30 2019 19:27

    mbhave on master

    Fix generate release notes scri… (compare)

  • Jan 30 2019 19:26
    mbhave edited #805
  • Jan 30 2019 19:26
    mbhave commented #805
  • Jan 30 2019 19:05
    snicoll milestoned #805
  • Jan 30 2019 19:05
    snicoll labeled #805
  • Jan 30 2019 19:05
    snicoll assigned #805
  • Jan 30 2019 19:05
    snicoll opened #805
  • Jan 30 2019 19:04
    snicoll milestoned #804
Pushkar Jaiswal
@pushkarrrr
Hey, can we add a custom folder and its contents whenever we create a project by customizing the initialzr? If yes, how?
7 replies
Matheus Lubarino
@lubarinobr
Hello everyone, a have one question, is it possible to create a custom class with initialzr ? For example, if I add a specific dependency the initialize create a class for me.
1 reply
Pushkar Jaiswal
@pushkarrrr
This message was deleted
1 reply
Osher
@OsherRL
Hi all, I was wondering if it is possible to create a custom gradle task to copy files from one directory to another in a BuildCustomizer. Would this require creating a custom plugin or does the existing API support it?
15 replies
Pushkar Jaiswal
@pushkarrrr
Can i add tokens(keys) that will be replaced by their values in each file after they are generated?
2 replies
srinivasvsk
@srinivasvsk
Hello, how can i add a custom DependencyProjectGenerationConfiguration, i tried to add a custom BuildCustomizer but it errors out with A component required a bean of type 'io.spring.initializr.generator.project.ProjectDescription' that could not be found
9 replies
Pushkar Jaiswal
@pushkarrrr
Can we add a custom metadata field that takes user input along with Group, Artifact, Version, Description, etc when we generate the project?
5 replies
Supreet Suman
@supsuman
i import the spring initializr modules(generator,metdata,web etc) in my project now i want when new version release new version will automatically updated in my project. is there any way to do this?
3 replies
or is there any plugin for io.spring.initializr?
Linda Navarette
@lnavarette

Hi I left some a comment on a somewhat stale issue: https://github.com/spring-io/initializr/issues/663#issuecomment-986503931

I'd like to get a sense of whether supporting multi project layout is is something there would be interest in merging in so that I can either formalize it as a PR or evaluate another option for project generation.

1 reply
pickmonster
@pickmonster
image.png
Revisit error message when client fails to connect
image.png
start.spring.io can not connect server
Brian Clozel
@bclozel
it works for me and we haven't seen any alert. Is is a specific query? What combination of dependencies are you using?
(pasting here the "share..." link should be enough)
sportzverze
@sportzverze
Hi, I am trying to customize spring-initializr for my project. I am trying to add a few files to the final zip that is created. I am doing this using java. Can someone point me in the right direction?
4 replies
monnetchr
@monnetchr
How to reference a parent pom without <relativePath/> ?
<relativePath/> is always added, even when referencing a custom parent pom as documented https://docs.spring.io/initializr/docs/0.11.1/reference/html/#howto-configure-custom-parent-pom
And the code that adds that line is in a private method https://github.com/spring-io/initializr/blob/v0.11.1/initializr-generator/src/main/java/io/spring/initializr/generator/buildsystem/maven/MavenBuildWriter.java#L123
5 replies
Pushkar Jaiswal
@pushkarrrr
Hi everyone, just had a query that in start.spring.io repository, https://github.com/spring-io/start.spring.io/blob/main/start-site/src/main/java/io/spring/start/site/web/HomeController.java How does this controller reach to index.html of the start-client module?
6 replies
sixcorners
@sixcorners
This message was deleted
MarcG
@marc06210
Hello, would it be possible to extend the Parameter class in order to also define Annotations?
I would like to generate methods like
@GetMapping("/echo")
public String echoParam(@RequestParam(name="what") String what) {
return what.toString();
}
or maybe I missed something and it is already possible.
thx
Marc
2 replies
Joe Athman
@jjathman
Prior to spring-io/initializr#1292 we had been using (abusing) this to configure plugin extensions within our generated builds. An example would be configuring the Gradle Quality plugin. Is there an API I can use instead of the tasks API to configure an extension? Ultimately, I just want my build to contain something like:
    quality {
        strict = false
    }
4 replies
Lukas
@plazovnikAcc
grafik.png

Hey guys,
I'm trying to setup 3 spring-boot WAR applications in one tomcat server.

I can start them separatly, but when both are starting I get an "Cannot initialize context because there is already a root application context present"

in both projects I have an web.xml configured as the screen above

grafik.png
And the application builder as such:
i'd like them to mostly separately, so I'm not sure how to configure them, so they are not interfering.
Anyone got pointers?
srinivasvsk
@srinivasvsk
Hey guys, question on new version 0.12.0, i have a custom configuration to add build info build.tasks().customize("springBoot", (task) -> task.invoke("buildInfo")); , this is causing build failure with latest 2.6.3 version , Task with name 'springBoot' not found in root project , do i need to use different name
3 replies
Pushkar Jaiswal
@pushkarrrr
Hi, can we customize initializr to add Python as a language like java and kotlin?
3 replies
Mark Sailes
@msailes
Hi everyone, does anyone from Spring know how many times start.spring.io is used in a month to create projects?
Andy Wilkinson
@wilkinsona
We shared some numbers in this presentation: https://www.infoq.com/presentations/spring-initializr/. It's at 33 minutes. At that time it was > 1 million projects a month.
Mark Sailes
@msailes
Thanks Andy, that's really useful
Abu Bangurah
@abangurah_gitlab
Hi everyone, does someone know how to bring up the webpage for start.spring.io? I can run the application but I can't bring up the webpage the application localhost is on.
13 replies
bharatsingh100
@bharatsingh100
how can i add a extra asset like a controller file in the project to be generated
Thibaud Lepretre
@kakawait
Hello, I'd like to build my own build system (different than Maven and Gradle) into my own instance of Spring initializr. I've started but I'm a bit stuck about ProjectDescription... Is it possible to have different ProjectDescription because this alternative build system does not rely on group and artifact concept....
Do you think is possible? Because for what I saw groupId and artifactId is totally part of ProjectDescription?
2 replies
Thibaud Lepretre
@kakawait
This message was deleted
Michael Hoffman
@michaelhoffmantech
Good day! I'm writing up a new course for Pluralsight, "Using Spring Boot 2 with Spring Initializr" and I'm looking for some community feedback on content and what might be interesting/helpful. At this time, I'm planning to have course modules that cover starting out with different application types. I'll be covering a microservice/cloud app, web app, integration app (Kafka), batch app and console app. My approach will be to show the common dependencies for each app type and then the common first steps once the project has been generated. My question to the group is, would you find content like this useful? Are there other ideas that could be more beneficial? Any help would be appreciated!
Thibaud Lepretre
@kakawait
Not game change, but I'd like to say Initializr was and is really well engineered! I've succeed to do close to what I would like to do with a custom build system (rather than mvn/gradle and 1000000 miles different in term of concept) without forking!
I've forked start.spring.io, but even this piece of code still well factored that let me reduce the number of change
Kudo :kiss:
Toon Geens
@tgeens
I'm working with the ProjectAssetTester, more specifically the AbstractTextAssert
running on Java 17, so I was trying out the new text-blocks
doesn't look it is supported yet - would you accept a PR for that ?
Andy Wilkinson
@wilkinsona
A text block's just a String isn't it? I guess you're looking for something like hasSameContentAs(Resource resource) that takes a Stringinstead?
Toon Geens
@tgeens
correct
this is a bit silly ;-)
"""
my contents
line 2
""".split("\n")
I could probably go via new ByteArrayResource(content.getBytes("UTF-8")); or something - but it would be nice to have that handled by AbstractTextAssert
Andy Wilkinson
@wilkinsona
Yeah, the resource approach is a little clunky :)
Andy Wilkinson
@wilkinsona
Adding hasSameContentAs(String string), primarily for use with text blocks doesn't sound unreasonable to me.
JahzVH
@JahzVH

Hello,
I am merging the default InitializrProperties and a custom InitializrProperties, the custom InitializrProperties has javaVersions, group-id, artifact-id and dependencies.
I am merging them as follows

@Bean
    public DefaultInitializrMetadataProvider customInitializrMetadataProvider(InitializrProperties initializrProperties,
                                                                          CustomInitializrProperties customInitializrProperties,
                                                                          InitializrMetadataUpdateStrategy initializrMetadataUpdateStrategy) {
        var initializrMetadata = InitializrMetadataBuilder
                .fromInitializrProperties(customInitializrProperties.initializr)
                .withInitializrProperties(initializrProperties, true)
                .build();
        return new DefaultInitializrMetadataProvider(initializrMetadata, initializrMetadataUpdateStrategy);
    }

The issue I see with the above setup is that the group-id is not overwritten from my custom props (but artifact-id, javaVersions and dependencies are)
If I switch the initializrProperties like

.fromInitializrProperties(initializrProperties)
.withInitializrProperties(customInitializrProperties.initializr, true)

Now everything is overwritten as expected but not the javaVersions.

Any idea why this is happening?, I want my custom props to overwrite the default initializr props always.

1 reply
Lars Vierbergen
@vierbergenlars
I'm working with ProjectAssetTester, specifically TextAssert to compare a generated file with a reference file.
For larger files, the assertion error message in case of failure is a bit difficult to read, as by default AssertJ prints both files as an array of lines, and then mentions the missing/superfluous ones without context.
To create a more readable message, I resorted to AssertJ DiffUtils to create the assertion message. It can make a quite nice and readable unified diff between expected and actual values.
Would you be interested in a PR to add that to initializr-generator-test?
2 replies