ในโปรเจกต์แอปพลิเคชันที่ควบคุมโดย Gradle build manager
การมองเห็นแฟ้มข้อมูลทั้งหมดได้จะทำให้รู้สึกสะดวกสบายกว่า
ผู้มีส่วนร่วมในการพัฒนาแอปพลิเคชัน,
เหมือนกับโฟลเดอร์ทรัพยากรที่ไม่ได้เป็น
ในเส้นทางตามข้อตกลง
ตัวอย่างเช่น ฉันต้องการให้โฟลเดอร์ src/jbake
ให้แสดงเป็น ‘resource folder’
สามารถทำได้โดยเข้าไปที่การตั้งค่าของโปรเจกต์ (configuration du projet),
ใน wizards ของ IDE อย่างไรก็ตาม ตัวเลือกนี้จะไม่ถูกบันทึกไว้ในการรีโหลดครั้งถัดไป
ของโปรเจกต์ Gradle ใน IDE หากต้องการให้การตั้งค่านี้มีผลถาวร
วิธีแก้คือการเขียนทับ (override) การกำหนดค่า path ของแหล่งข้อมูล
ในไฟล์กำหนดค่า `build.gradle
เช่นที่บรรทัด 18, 19, 20 และ 21 :
build.gradle

plugins {
    id "java"
    id "groovy"
    id "org.jbake.site" version "5.0.0"
    id "org.ajoberstar.git-publish" version "2.1.1"
}
repositories {
    mavenCentral()
    jcenter()
}
group project_group
version project_version
sourceSets {
    main {
        java { srcDirs = [] }
        groovy { srcDirs =["src/main/java", "src/main/groovy"] }
        resources {
            srcDirs =[
                    "src/main/resources",
                    "src/jbake"//in order to get site src content in the IDE
            ]
        }
    }
    test {
        java { srcDirs = [] }
        groovy { srcDirs =["src/test/java", "src/test/groovy"] }
    }
}
test {
    useJUnitPlatform()
}
configurations {
    ivy
}
dependencies {
    ivy "org.apache.ivy:ivy:$ivy_version"
    implementation "org.codehaus.groovy:groovy-all:$groovy_version"
    implementation "org.asciidoctor:asciidoctor-java-integration:$asciidoctor_java_integration_version"
    implementation "org.freemarker:freemarker:$freemarker_version"
    testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
    testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5_version"
}
gitPublish {
    repoUri = github_pages_blog_repository
    branch = git_branch
    contents {
        from(file(jbake_content_from)) {
            into jbake_content_to
        }
    }
}
tasks.withType(GroovyCompile) {
    groovyClasspath += configurations.ivy
}

บทความที่เกี่ยวข้อง