diff options
| author | ilotterytea <iltsu@alright.party> | 2024-06-09 15:13:38 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-06-09 19:27:34 +0500 |
| commit | a3bb4022b1693e865f13b6cf294762aaaa8987a7 (patch) | |
| tree | bd5415cdef16ea84cf13e0e1e8d710c8b6b397ab /build.gradle | |
| parent | 5cd639a94a58fc84c0d3476df23d322759277831 (diff) | |
feat: write all asset file paths to the file
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 1f4a062..a770292 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,18 @@ buildscript { } } +task writeAllAssetsToFile { + doLast { + def assetsFolder = new File("${project.rootDir}/assets/") + def assetsFile = new File(assetsFolder, "assets.txt") + assetsFile.delete() + + fileTree(assetsFolder).collect {assetsFolder.relativePath(it) }.each { + assetsFile.append(it + "\n") + } + } +} + allprojects { apply plugin: "eclipse" @@ -79,4 +91,6 @@ project(":core") { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" } + + compileJava.dependsOn writeAllAssetsToFile } |
