fix(gradle): change checkouts directory

This commit is contained in:
Harsh Shandilya 2022-11-14 14:03:53 +05:30
parent 839773e48e
commit 6a8893a5aa
No known key found for this signature in database
3 changed files with 7 additions and 4 deletions

3
.gitignore vendored
View file

@ -242,3 +242,6 @@ hs_err_pid*
!/gradle/wrapper/gradle-wrapper.jar
# End of https://www.toptal.com/developers/gitignore/api/androidstudio,gradle,intellij+all
# Directory for checkouts of projects built by includegit-gradle-plugin
/checkouts/

View file

@ -26,18 +26,18 @@ class SpotlessPlugin : Plugin<Project> {
kotlin {
ktfmt(KTFMT_VERSION).googleStyle()
target("**/*.kt")
targetExclude("**/build/", "/spotless/")
targetExclude("**/build/", "/spotless/", "/checkouts/")
licenseHeaderFile(project.file("spotless/license.kt"))
}
kotlinGradle {
ktfmt(KTFMT_VERSION).googleStyle()
target("**/*.kts")
targetExclude("**/build/")
targetExclude("**/build/", "/checkouts/")
licenseHeaderFile(project.file("spotless/license.kt"), "import|plugins|@file")
}
format("xml") {
target("**/*.xml")
targetExclude("**/build/", ".idea/")
targetExclude("**/build/", ".idea/", "/checkouts/")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()

View file

@ -55,7 +55,7 @@ pluginManagement {
plugins { id("me.champeau.includegit") version "0.1.5" }
gitRepositories {
checkoutsDirectory.set(rootProject.projectDir.resolve("build/checkouts"))
checkoutsDirectory.set(rootProject.projectDir.resolve("checkouts"))
include("whetstone") {
uri.set("https://github.com/msfjarvis/whetstone")
branch.set("inject-component-activity")