Move resources from /src to separate /resources directory.

Previously this files was stored in /src directory and was included in
resources mainly by SourceSet.projectDefault from sourceSets.kt:

val processResources = tasks.getByName(processResourcesTaskName) as ProcessResources
processResources.from("resources") { include("**") }
processResources.from("src") { include("META-INF/**", "**/*.properties") }

Also there are some custom rules like this:

resources.srcDir("../idea-analysis/src").apply { include("**/*.properties") }
resources.srcDirs("idea-repl/src").apply { include("META-INF/**") }

All this rules are synthesized in script
https://github.com/snrostov/kotlin-migrate-resources/blob/master/src/main/kotlin/main.kt

This commit created using that script. See README.md for more details on
 script.
This commit is contained in:
Sergey Rostov
2018-11-27 10:11:14 +03:00
parent 093b9d174d
commit df2e4524d7
94 changed files with 0 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<defs>
<linearGradient id="kotlin-a" x1="2.195%" x2="91.789%" y1="91.369%" y2="0%">
<stop offset="0%" stop-color="#8F67FF" stop-opacity=".987"/>
<stop offset="56.707%" stop-color="#F9A02F" stop-opacity=".993"/>
<stop offset="100%" stop-color="#F7861E"/>
</linearGradient>
</defs>
<g fill="none" fill-rule="evenodd">
<polygon fill="#0EAEFF" points="4 4 4 35.995 36.001 35.995 20.045 19.925 36.001 4"/>
<polygon fill="url(#kotlin-a)" points="20.064 4 4 20.893 4 35.995 20.041 19.925 35.995 4"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 631 B