Comments (10)
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.
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.
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.
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.
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.
Nice!
from spring-aot-smoke-tests.
I think this can be closed. @snicoll ?
from spring-aot-smoke-tests.
We now have an option for Gradle based builds, but none for Maven.
from spring-aot-smoke-tests.
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.
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)
- Remove `boot:logging-log4j2` sample
- Upgrade to native build tools plugin 0.9.17
- Run native tests on the CI regularly
- Don't depend on processAot on checkFormat gradle tasks HOT 2
- Increase Cassandra-related timeouts
- Unable to manually start a smoke test in concourse HOT 2
- Gradle build doesn't include all tests
- Add Spring Cloud OpenFeign sample HOT 2
- Test Liquibase with a multi-file change log
- Add a smoke test that uses @EntityScan
- Aspect smoke test failed HOT 1
- Spring data aerospike native graalvm HOT 1
- Upgrade to Graal 22.3.2
- Stabilise tests that use httpbin.org HOT 1
- Upgrade to NBT 0.9.23 HOT 1
- Add a smoke test for ServletComponentScan with WebServlet, WebFilter, and WebListener HOT 2
- Investigate using mccutchen/go-httpbin HOT 8
- Update Docker Compose to 2.20.2
- Reduce how often CI builds download Gradle HOT 4
- Add support for configuring JVM args on the application under test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-aot-smoke-tests.