Mashimom
Mashimom

Reputation: 467

Is there a way to add classpath/directories for dependencies on Gradle?

I have a new project, it depends on classes at legacy project, not jar files but actual classes. How can I make these directories a dependency for gradle compile?

Upvotes: 28

Views: 44257

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123910

dependencies {
    compile files("relative/path/to/classes/dir")
}

For further details, check out the Gradle User Guide.

Upvotes: 43

Related Questions