Skip to content

Commit

Permalink
Change task orders
Browse files Browse the repository at this point in the history
  • Loading branch information
ForceTower committed Jul 20, 2024
1 parent adbb10c commit cf20796
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*.{kt,kts}]
ktlint_code_style = android_studio
max_line_length = off
ktlint_standard_property-naming = disabled
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_allow_trailing_comma = false
indent_size = 4

27 changes: 13 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ buildscript {
repositories {
google()
mavenCentral()
// maven { url "https://plugins.gradle.org/m2/" }
mavenLocal()
}

Expand All @@ -54,18 +53,18 @@ allprojects {
mavenLocal()
}

// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xmaxerrs" << "10000"
// options.compilerArgs << "-Xmaxwarns" << "10000"
// }
// }
gradle.projectsEvaluated {
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000"))
options.compilerArgs.addAll(listOf("-Xmaxwarns", "10000"))
}
}
}

//subprojects {
// tasks.configureEach {
// if (it.name == 'preBuild') {
// mustRunAfter 'lintKotlin'
// }
// }
//}
subprojects {
tasks.configureEach {
if (name == "preBuild") {
mustRunAfter("lintKotlin")
}
}
}
1 change: 1 addition & 0 deletions dynamic-features/map/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ plugins {
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.hilt.android.gradle)
alias(libs.plugins.kotlinter.gradle)
}

android {
Expand Down

0 comments on commit cf20796

Please sign in to comment.