Coder Social home page Coder Social logo

spring-guides / gs-gradle Goto Github PK

View Code? Open in Web Editor NEW
164.0 164.0 937.0 406 KB

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

Java 83.79% Shell 16.21%

gs-gradle's People

Contributors

btalbott avatar buzzardo avatar cbeams avatar gregturn avatar habuma avatar kdvolder avatar marcingrzejszczak avatar rickvdp avatar royclarkson avatar silverskyvicto avatar spring-operator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gs-gradle's Issues

Explain how to change the name of the jar

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!

Guide has inconsistent behavior

  1. The instructions reference a "very basic build.gradle file that only has one line in it:" but it shows the 27 line build.gradle file (final product of the exercise) in the sample text box. If you type it in as shown, then the exercise doesn't work as described. fixed via #12
  2. When I ran "gradle build" for the first time, it didn't create any .class files or reports, just the .jar files. Not sure if this is my config issue or a change in behavior since the guide was written?

Getting error in get-started doc

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.

Revert

492ad7a made some sweeping changes. Might need to revert them in this case.

"Build Java Code" section contains completed build.gradle, not the initial version

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 ?

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.