-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iOS targets to
test
module and bump dependencies (#61)
- Loading branch information
Showing
10 changed files
with
71 additions
and
36 deletions.
There are no files selected for viewing
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,41 +1,57 @@ | ||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
plugins { | ||
kotlin("multiplatform") version "1.4.31" apply false | ||
id("com.android.library") version "4.0.2" apply false | ||
id("kotlinx-atomicfu") version "0.15.1" apply false | ||
id("org.jmailen.kotlinter") version "3.2.0" apply false | ||
kotlin("multiplatform") version "1.5.10" apply false | ||
id("com.android.library") version "4.1.3" apply false | ||
id("kotlinx-atomicfu") version "0.16.1" apply false | ||
id("org.jmailen.kotlinter") version "3.4.4" apply false | ||
id("binary-compatibility-validator") version "0.2.3" | ||
id("org.jetbrains.dokka") version "1.4.30" | ||
id("com.vanniktech.maven.publish") version "0.14.2" apply false | ||
id("net.mbonnin.one.eight") version "0.1" | ||
id("org.jetbrains.dokka") version "1.4.32" | ||
id("com.vanniktech.maven.publish") version "0.15.1" apply false | ||
id("net.mbonnin.one.eight") version "0.2" | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven("https://kotlin.bintray.com/kotlinx/") | ||
mavenCentral() | ||
} | ||
|
||
tasks.withType<Test>().configureEach { | ||
testLogging { | ||
events("started", "passed", "skipped", "failed", "standardOut", "standardError") | ||
exceptionFormat = FULL | ||
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL | ||
showExceptions = true | ||
showStackTraces = true | ||
showCauses = true | ||
} | ||
} | ||
|
||
withPluginWhenEvaluated("jacoco") { | ||
configure<JacocoPluginExtension> { | ||
toolVersion = "0.8.7" | ||
} | ||
} | ||
} | ||
|
||
tasks.dokkaHtmlMultiModule.configure { | ||
outputDirectory.set(buildDir.resolve("gh-pages")) | ||
} | ||
|
||
fun Project.withPluginWhenEvaluated(plugin: String, action: Project.() -> Unit) { | ||
pluginManager.withPlugin(plugin) { whenEvaluated(action) } | ||
} | ||
|
||
// `afterEvaluate` does nothing when the project is already in executed state, so we need a special check for this case. | ||
fun <T> Project.whenEvaluated(action: Project.() -> T) { | ||
if (state.executed) { | ||
action() | ||
} else { | ||
afterEvaluate { action() } | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ plugins { | |
} | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
} |
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
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
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
File renamed without changes.