A Gentle Introduction to Gradle

Develocity · 144K views · 2014 · 59:46

Open on YouTube

Testing, debugging & developer toolsSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when a Gradle question comes from someone new to the tool and needs a quick beginner course on the basics.

Recommended by 1 people across 1 different months, 2014 to 2018.

What it is

A one-hour recorded webinar by Tim Berglund (originally given in July 2012) that introduces the Gradle build tool through live-coded, real-world examples. It covers how Gradle handles the kinds of problems that come up in everyday enterprise builds.

What people said

Recommends Jocce Nilsson · 2016-10 · Stack Overflow · on “Gradle binding dependency configuration with a task”

First create the compilation task using an exec task type, see DSL refreence for Exec [LINK] . When you create your compilation task, you can get a reference to the configuration using getAsPath(), see API doc for FileCollection [LINK] configurations.myCompile.getAsPath() But seriously, I do recommend that you apply the java plugin for this. If you feel the need tor a quick beginner course, try this video [this video] .

Cites ǝɲǝɲbρɯͽ · 2014-08 · Stack Overflow · on “Android Studio build fails with "Task '' not found in root project 'MyProject'."”

Though late in answering, this is a hard one to Google (the single quotes) and it’s not clear what’s happening. I don't have the reputation yet to comment or ask for scope (or post 3 links), so this answer may be a little tedious. To answer fast, you may have multiple Gradle plugins in your project. Synchronize Gradle Wrapper and Plugins My issue seemed to start with a corrupted IML file. Android Studio (between closing and reopening a project) began complaining an IML was gone (it wasn’t) and a module should be deleted, which I declined. It persisted, I upgraded to AS 0.8.7 (canary channel) and got stuck on the OP issue (Task '' not found in root project). This completely blocked builds so

Cites JL_SO · 2018-10 · Stack Overflow · on “gradle: Could not get unknown property 'runtimeClasspath' for task”

I have the following simple build.gradle file: apply plugin: 'java' task foo(type: JavaExec) { main = 'gradletest2.Main' classpath = runtimeClasspath } which when executed causes the following error to be generated: C:\Users\J\Documents\Development\eclipse-photon\gradletest2>gradle foo FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\J\Documents\Development\eclipse-photon\gradletest2\build.gradle' line: 17 * What went wrong: A problem occurred evaluating root project 'gradletest2'. > Could not get unknown property 'runtimeClasspath' for task ':foo' of type org.gradle.api.tasks.JavaExec. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --deb