Yann Hoffmann
Yann Hoffmann

Reputation: 221

How to enable partial build in intellij (Gradle)?

Despite reading this popular post, I couldn't find the solution to building only a subset of a Java project.

So far I've tried:

EDIT

I am using the latest version of Intellij with Gradle and JDK 1.8. I wrote some gibberish inside BrokenOnPurpose.java and the objective was to get the compiler to ignore the file. But instead, I get a "Task compileJava failed" with an error, stopped dead in its tracks.

src
├── main
│   ├── java
│   │   ├── BrokenOnPurpose.java
│   │   └── Main.java (*)
│   └── resources
└...
(*) entry method

Upvotes: 0

Views: 190

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401965

You need to disable gradle build delegation for your compiler settings to have effect.

Upvotes: 1

Related Questions