-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated project build.gradle file to kts
- Loading branch information
1 parent
3cf727f
commit 3fdea68
Showing
6 changed files
with
106 additions
and
196 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
buildscript { | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
maven(url = "https://jitpack.io") | ||
} | ||
|
||
dependencies { | ||
classpath(libs.android.gradle) | ||
classpath(libs.kotlin.gradle) | ||
classpath(libs.jacoco.gradle) | ||
classpath(libs.version.gradle) | ||
classpath(libs.dokka.gradle) | ||
classpath(libs.dokka.android.gradle) | ||
classpath(libs.maven.publish.gradle) | ||
} | ||
} | ||
|
||
apply(plugin = "com.github.ben-manes.versions") | ||
apply(plugin = "org.jetbrains.dokka") | ||
apply(from = "gradle/jacoco.gradle") | ||
apply(from = "gradle/merge-reports.gradle") | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
|
||
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach { | ||
dokkaSourceSets.named("main") { | ||
jdkVersion.set(8) | ||
skipDeprecated.set(true) | ||
skipEmptyPackages.set(true) | ||
reportUndocumented.set(false) | ||
} | ||
} | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(rootProject.buildDir) | ||
} | ||
|
||
tasks.register("install") { | ||
val publishTasks = mutableListOf<Task>() | ||
project.subprojects.forEach { project -> | ||
val installTask = project.tasks.findByName("install") ?: project.tasks.findByName("publishToMavenLocal") | ||
if (installTask != null) { | ||
publishTasks.add(installTask) | ||
} | ||
} | ||
dependsOn(publishTasks) | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apply plugin: "com.vanniktech.android.junit.jacoco" | ||
|
||
junitJacoco { | ||
// WARNING! Don"t upgrade unless https://github.com/Malinskiy/danger-jacoco/issues/10 is fixed | ||
jacocoVersion = '0.8.2' | ||
excludes = [ | ||
// Defaults | ||
'**/androidx/**/*.*', | ||
'**/*$$*', | ||
'**/BuildConfig.*', | ||
'**/Manifest*.*', | ||
'**/*$Lambda$*.*', // Jacoco can not handle several "$" in class name. | ||
'**/*$inlined$*.*', // Kotlin specific, Jacoco can not handle several "$" in class name. | ||
'**/com/instacart/formula/test/**/*.*' | ||
] | ||
ignoreProjects = [ | ||
"samples/*" | ||
] | ||
includeNoLocationClasses = true | ||
includeInstrumentationCoverageInMergedReport = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
enableFeaturePreview("VERSION_CATALOGS") | ||
|
||
include(":formula") | ||
include(":formula-android") | ||
include(":formula-android-compose") | ||
include(":formula-android-tests") | ||
include(":formula-lint") | ||
include(":formula-rxjava3") | ||
include(":formula-coroutines") | ||
include(":formula-test") | ||
include(":samples:composition") | ||
include(":samples:counter") | ||
include(":samples:custom-network-state-stream") | ||
include(":samples:stopwatch") | ||
include(":samples:stopwatch-coroutines") | ||
include(":samples:stopwatch-compose") | ||
include(":samples:todoapp") | ||
include( | ||
":formula", | ||
":formula-android", | ||
":formula-android-compose", | ||
":formula-android-tests", | ||
":formula-lint", | ||
":formula-rxjava3", | ||
":formula-coroutines", | ||
":formula-test", | ||
) | ||
include( | ||
":samples:composition", | ||
":samples:counter", | ||
":samples:custom-network-state-stream", | ||
":samples:stopwatch", | ||
":samples:stopwatch-coroutines", | ||
":samples:stopwatch-compose", | ||
":samples:todoapp" | ||
) |