C:\Users\wpollock\Temp>mkdir Demo

C:\Users\wpollock\Temp>cd Demo

C:\Users\wpollock\Temp\Demo>gradle init
Starting a Gradle Daemon, (subsequent builds will be faster)

Select type of project to generate:
  1: basic
  2: application
  3: library
  4: Gradle plugin
Enter selection (default: basic) [1..4] 2

Select implementation language:
  1: C++
  2: Groovy
  3: Java
  4: Kotlin
  5: Swift
Enter selection (default: Java) [1..5] 3

Select build script DSL:
  1: Groovy
  2: Kotlin
Enter selection (default: Groovy) [1..2] 1

Select test framework:
  1: JUnit 4
  2: TestNG
  3: Spock
  4: JUnit Jupiter
Enter selection (default: JUnit 4) [1..4] 4

Project name (default: Demo):
Source package (default: Demo): demo

> Task :init
Get more help with your project:
   https://docs.gradle.org/6.2.1/userguide/tutorial_java_projects.html

BUILD SUCCESSFUL in 1m 1s
2 actionable tasks: 2 executed
C:\Users\wpollock\Temp\Demo>tree
Folder PATH listing
Volume serial number is E69F-AA61
C:.
├───.gradle
│   ├───6.2.1
│   │   ├───executionHistory
│   │   ├───fileChanges
│   │   ├───fileHashes
│   │   └───vcsMetadata-1
│   ├───buildOutputCleanup
│   ├───checksums
│   └───vcs-1
├───gradle
│   └───wrapper
└───src
    ├───main
    │   ├───java
    │   │   └───demo
    │   └───resources
    └───test
        ├───java
        │   └───demo
        └───resources

C:\Users\wpollock\Temp\Demo>type src\main\java\demo\App.java
/*
 * This Java source file was generated by the Gradle 'init' task.
 */
package demo;

public class App {
    public String getGreeting() {
        return "Hello world.";
    }

    public static void main(String[] args) {
        System.out.println(new App().getGreeting());
    }
}

C:\Users\wpollock\Temp\Demo>type src\test\java\demo\AppTest.java
/*
 * This Java source file was generated by the Gradle 'init' task.
 */
package demo;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;

class AppTest {
    @Test void appHasAGreeting() {
        App classUnderTest = new App();
        assertNotNull(classUnderTest.getGreeting(), "app should have a greeting");
    }
}

C:\Users\wpollock\Temp\Demo>type build.gradle
/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * User Manual available at https://docs.gradle.org/6.2.1/userguide/tutorial_java_projects.html
 */

plugins {
    // Apply the java plugin to add support for Java
    id 'java'

    // Apply the application plugin to add support for building a CLI application.
    id 'application'
}

repositories {
    // Use jcenter for resolving dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
}

dependencies {
    // This dependency is used by the application.
    implementation 'com.google.guava:guava:28.1-jre'

    // Use JUnit Jupiter API for testing.
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'

    // Use JUnit Jupiter Engine for testing.
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}

application {
    // Define the main class for the application.
    mainClassName = 'demo.App'
}

test {
    // Use junit platform for unit tests
    useJUnitPlatform()
}

C:\Users\wpollock\Temp\Demo>gradlew build

BUILD SUCCESSFUL in 10s
7 actionable tasks: 7 executed
C:\Users\wpollock\Temp\Demo>gradlew test

BUILD SUCCESSFUL in 1s
3 actionable tasks: 3 up-to-date
C:\Users\wpollock\Temp\Demo>tree
C:.
├───.gradle
│   ├───6.2.1
│   │   ├───executionHistory
│   │   ├───fileChanges
│   │   ├───fileContent
│   │   ├───fileHashes
│   │   ├───javaCompile
│   │   └───vcsMetadata-1
│   ├───buildOutputCleanup
│   ├───checksums
│   └───vcs-1
├───build
│   ├───classes
│   │   └───java
│   │       ├───main
│   │       │   └───demo
│   │       └───test
│   │           └───demo
│   ├───distributions
│   ├───generated
│   │   └───sources
│   │       └───annotationProcessor
│   │           └───java
│   │               ├───main
│   │               └───test
│   ├───libs
│   ├───reports
│   │   └───tests
│   │       └───test
│   │           ├───classes
│   │           ├───css
│   │           ├───js
│   │           └───packages
│   ├───scripts
│   ├───test-results
│   │   └───test
│   │       └───binary
│   └───tmp
│       ├───compileJava
│       ├───compileTestJava
│       └───jar
├───gradle
│   └───wrapper
└───src
    ├───main
    │   ├───java
    │   │   └───demo
    │   └───resources
    └───test
        ├───java
        │   └───demo
        └───resources
C:\Users\wpollock\Temp\Demo>dir build\libs
 Volume in drive C is OSDisk
 Volume Serial Number is 6891-6A55

 Directory of C:\Users\wpollock\Temp\Demo\build\libs

03/11/2020  02:41 AM    <DIR>          .
03/11/2020  02:41 AM    <DIR>          ..
03/11/2020  02:41 AM               849 Demo.jar
               1 File(s)            849 bytes
               2 Dir(s)  402,922,491,904 bytes free

C:\Users\wpollock\Temp\gradle sandbox\Demo>dir build\reports\tests\test
 Volume in drive C is OSDisk
 Volume Serial Number is 6891-6A55

 Directory of C:\Users\wpollock\Temp\Demo\build\reports\tests\test

03/11/2020  02:41 AM    <DIR>          .
03/11/2020  02:41 AM    <DIR>          ..
03/11/2020  02:41 AM    <DIR>          classes
03/11/2020  02:41 AM    <DIR>          css
03/11/2020  02:41 AM             2,440 index.html
03/11/2020  02:41 AM    <DIR>          js
03/11/2020  02:41 AM    <DIR>          packages
               1 File(s)          2,440 bytes
               6 Dir(s)  402,947,432,448 bytes free
C:\Users\wpollock\Temp\Demo>lynx build\reports\tests\test\index.html
Test Summary

   1
   tests

   0
   failures

   0
   ignored

   0.020s
   duration

   100%
   successful

     * Packages
     * Classes

Packages

   Package Tests Failures Ignored Duration Success rate
   demo    1     0        0       0.020s   100%

Classes

       Class    Tests Failures Ignored Duration Success rate
   demo.AppTest 1     0        0       0.020s   100%

   Wrap lines [ ]
   Generated by Gradle 6.2.1 at Mar 11, 2020, 2:41:09 AM


(NORMAL LINK) Use right-arrow or <return> to activate.
  Arrow keys: Up and Down to move.  Right to follow a link; Left to go back.
 H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list               

C:\Users\wpollock\Temp\Demo>gradlew run

> Task :run
Hello world.

BUILD SUCCESSFUL in 1s
2 actionable tasks: 1 executed, 1 up-to-date
C:\Users\wpollock\Temp\Demo>gradlew clean

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
C:\Users\wpollock\Temp\Demo>tree
Folder PATH listing
Volume serial number is E69F-AA61
C:.
├───.gradle
│   ├───6.2.1
│   │   ├───executionHistory
│   │   ├───fileChanges
│   │   ├───fileHashes
│   │   └───vcsMetadata-1
│   ├───buildOutputCleanup
│   ├───checksums
│   └───vcs-1
├───gradle
│   └───wrapper
└───src
    ├───main
    │   ├───java
    │   │   └───Demo
    │   └───resources
    └───test
        ├───java
        │   └───Demo
        └───resources
C:\Users\wpollock\Temp\Demo>