<commit_before>
=== Hello Gradle QiWeb

> Automation evolved

In this short tutorial we'll enhance an application generated by `qiweb-cli` using Gradle.

IMPORTANT: You need to install http://gradle.org[Gradle] to be able to complete this tutorial.

Create a `build.gradle` file at the application root with the following content:

.`./build.gradle`
["source","groovy",subs="attributes"]
----
apply plugin: 'java' // <1>

repositories {
    mavenLocal();
    mavenCentral();
    maven {
        url "https://repository-qi4j.forge.cloudbees.com/release/"
        url "http://repo.gradle.org/gradle/libs-releases-local/"
        url "http://repo.typesafe.com/typesafe/releases"
    }
}

dependencies {

    compile "org.qiweb:org.qiweb.api:{qiweb-version}" // <2>
    compile "org.qiweb:org.qiweb.lib:{qiweb-version}" // <3>
    // Add application compile dependencies

    runtime "org.qiweb:org.qiweb.runtime:{qiweb-version}" // <4>
    // Add application runtime dependencies

    testCompile "org.qiweb:org.qiweb.test:{qiweb-version}" // <5>
    // Add application test dependencies

}

apply plugin: 'qiweb'

apply plugin: 'application' // <6>

mainClassName = 'org.qiweb.runtime.Main' // <7>
applicationName = 'hello-qiweb' // <8>
----
<1> Make this project a Java project
<2> Add compile scope dependency to QiWeb API<commit_msg>Documentation: fixed repositories declaration in Getting Started<commit_after>
=== Hello Gradle QiWeb

> Automation evolved

In this short tutorial we'll enhance an application generated by `qiweb-cli` using Gradle.

IMPORTANT: You need to install http://gradle.org[Gradle] to be able to complete this tutorial.

Create a `build.gradle` file at the application root with the following content:

.`./build.gradle`
["source","groovy",subs="attributes"]
----
apply plugin: 'java' // <1>

repositories {
    mavenLocal();
    mavenCentral();
    maven {
        url "http://repository-qi4j.forge.cloudbees.com/release/"
    }
    maven {
        url "http://repo.gradle.org/gradle/libs-releases-local/"
    }
    maven {
        url "http://repo.typesafe.com/typesafe/releases"
    }
}

dependencies {

    compile "org.qiweb:org.qiweb.api:{qiweb-version}" // <2>
    compile "org.qiweb:org.qiweb.lib:{qiweb-version}" // <3>
    // Add application compile dependencies

    runtime "org.qiweb:org.qiweb.runtime:{qiweb-version}" // <4>
    // Add application runtime dependencies

    testCompile "org.qiweb:org.qiweb.test:{qiweb-version}" // <5>
    // Add application test dependencies

}

apply plugin: 'qiweb'

apply plugin: 'application' // <6>

mainClassName = 'org.qiweb.runtime.Main' // <7>
applicationName = 'hello-qiweb' // <8>
----
<1> Make this project a Java project
<2> Add compile scope dependency to QiWeb API
{'fraction_non_alphanumeric': 0.14270152505446623, 'fraction_numerical': 0.007988380537400145, 'mean_word_length': 3.3660855784469095, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1374278', 'n_tokens_mistral': 944, 'n_tokens_neox': 853, 'n_words': 233}