Git Product home page Git Product logo

Comments (10)

wilkinsona avatar wilkinsona commented on April 25, 2024

After a fix in Boot, this should now work properly in the Gradle case. You can do something like this ./gradlew command-line-runner:build --include-build ../spring-boot/main to build and run the sample against the main worktree of your Spring Boot clone. You can specify --include-build multiple times if you need to build against local builds of multiple Gradle-based projects.

from spring-aot-smoke-tests.

garyrussell avatar garyrussell commented on April 25, 2024

I just tried this and it failed to find the branch...

% ./gradlew :spring-kafka-avro:build --include-build ../spring-kafka/GH-2359

FAILURE: Build failed with an exception.

* What went wrong:
Included build '/Users/grussell/Development/spring-kafka/GH-2359' does not exist.

from spring-aot-smoke-tests.

wilkinsona avatar wilkinsona commented on April 25, 2024

Gradle doesn't know anything about Git or its branches. You'd need to have your GH-2359 branch checked out somewhere and then point Gradle at that directory.

from spring-aot-smoke-tests.

garyrussell avatar garyrussell commented on April 25, 2024

Yes, this worked...

% ./gradlew :spring-kafka-avro:build --include-build ../spring-kafka        

... with the active branch on that project

But I had to temporarily remove the spring-kafka smoke test

* What went wrong:
Included build in /Users/grussell/Development/spring-kafka has name 'spring-kafka' which is the same as a project of the main build.

Your reference to /main was the confusing part.

from spring-aot-smoke-tests.

wilkinsona avatar wilkinsona commented on April 25, 2024

Ah, sorry for the confusion. Stephane and I both use git work trees so we have multiple branches checked out at the same time. I have spring-boot/main, spring-boot/2.7.x, and spring-boot/2.6.x directories. I then have 3 separate Eclipse workspaces, one for each check out. It saves time with IDE refreshes when I want to change branch.

from spring-aot-smoke-tests.

garyrussell avatar garyrussell commented on April 25, 2024

Nice!

from spring-aot-smoke-tests.

garyrussell avatar garyrussell commented on April 25, 2024

I think this can be closed. @snicoll ?

from spring-aot-smoke-tests.

mhalbritter avatar mhalbritter commented on April 25, 2024

We now have an option for Gradle based builds, but none for Maven.

from spring-aot-smoke-tests.

snicoll avatar snicoll commented on April 25, 2024

It would be nice but I am not feeling strongly about it. @wilkinsona feel free to close this one if you want to restrict this to Gradle-based build.

from spring-aot-smoke-tests.

wilkinsona avatar wilkinsona commented on April 25, 2024

Let's use this for the Gradle side of things. If the requirement comes up with Maven, I can take another look.

from spring-aot-smoke-tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.