Comments (3)
You can use a newer version than Gradle 1.7 and I am sure the IDE would still be happy with it. In addition, Gradle now also requires you to add a settings.gradle
file for each project. The way you opened the "project" in IntelliJ isn't correct as you are not dealing with a large multi-project build. You need to open projects individually e.g. chapter02/helloworld-task-doLast
.
Side note: For learning purposes, you don't really need an IDE. You may just open a project from an editor e.g. VsCode. You can always execute the build from the command line.
Bottom line: The book would need a major overhaul, however, Manning Publications decided not to work on a second edition.
from gradle-in-action-source.
Thanks! You are using Android Studio and not IntelliJ IDEA which seems to enforce a specific Gradle version. Try this with IntelliJ IDEA community edition.
from gradle-in-action-source.
Cool, that gets me closer, but rather than installing Community Edition, it turns out that you can disable IntelliJ's Android Studio plugin to achieve the same thing...
..., but then I get this:
Unsupported Gradle.
The project uses Gradle 1.7 which is incompatible with IntelliJ IDEA 2021.3.
Possible solution:
- Upgrade Gradle wrapper to 3.0 version and re-import the project
So it seems IntelliJ integration is impossible.
As a workaround, should I just run the gradle commands from IntelliJ's terminal? For example, using sdk-man, I can select gradle 1.7, and cd to the project's directory.
from gradle-in-action-source.
Related Issues (9)
- Test report aggregation HOT 4
- classesDir property HOT 1
- Would the book content still be useful for nowadays' software development? HOT 2
- chapter06 / listing_06_04-todo-cross-project-tasks HOT 1
- listing_08_11-14-cloudbees-extensions HOT 6
- Can't get examples working HOT 4
- Why you use com.yuege.gia.todo.*? HOT 4
- gradle build failed HOT 2
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 gradle-in-action-source.