spring-guides / gs-gradle Goto Github PK
View Code? Open in Web Editor NEWBuilding Java Projects with Gradle :: Learn how to build a Java project with Gradle.
Home Page: http://spring.io/guides/gs/gradle/
License: Apache License 2.0
Building Java Projects with Gradle :: Learn how to build a Java project with Gradle.
Home Page: http://spring.io/guides/gs/gradle/
License: Apache License 2.0
Would be good to update the version of Gradle from 6.X to 7.X (7.4.2) and java from 8 to 17.
The guide explains,
"The libs folder should contain a JAR file that is named after the project’s folder. If you cloned the project from GitHub, then the JAR file is likely named initial.jar. That’s probably not what you’d want it named, though."
But even though "that's probably not what [I] want to name it", the guide doesn't tell me how to change the name of the output jar!
This might leave newcomers to Java confused after finishing the guide.
When I run gradle build
(or even gradle tasks
/ ./gradlew build
) I get the error -
> Could not find method bootJar() for arguments ...
I noticed that a recent commit 015dbc1 replaced jar
with bootJar
, I don't understand why? I also noticed that CI server also shows the same error. Was this a typo?
I am getting an error on running gradle tasks
.
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Executing Gradle tasks as part of a build without a settings file is not supported. Make sure that you are executing Gradle from a directory within your Gradle project. Your project should have a 'settings.gradle(.kts)' file in the root directory.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
I fixed this error adding a new file 'settings.gradle' as said in the output.
I am using gradle 7.2.
I am adding a fix on this pr.
Please point out if there is something off with this issue or some better way to solve this.
It should use Gradle 4.8.1 , JDK 10, and Joda time is no need since Java 8 Date time API
It would be nice to update the wrapper jar to the latest version.
492ad7a made some sweeping changes. Might need to revert them in this case.
I'm a newbie for gradle in spring.
Could you help me?
Section says:
"Starting simple, create a very basic build.gradle file that has only one line in it:"
... then lists 27 lines of Gradle config!
This is because it's just including the build.gradle from the "initial" project dir, which seems to have been updated to be the same as the "completed" version.
Seems to be related to Issue #8 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.