Skip to content

Commit f5b03d0

Browse files
authored
Update to latest dependencies (#63)
1 parent 7529a73 commit f5b03d0

File tree

21 files changed

+128
-96
lines changed

21 files changed

+128
-96
lines changed

build.gradle.kts

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
*/
1616

1717
import com.android.build.gradle.internal.tasks.factory.dependsOn
18+
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
1819
import org.jetbrains.dokka.gradle.DokkaTask
20+
import java.net.URL
1921

2022
plugins {
2123
kotlin("jvm") version "1.4.0" apply false
22-
id("io.gitlab.arturbosch.detekt") version "1.11.2"
24+
id("io.gitlab.arturbosch.detekt") version "1.12.0"
2325
id("com.appmattus.markdown") version "0.6.0"
24-
id("org.jetbrains.dokka") version "0.10.1"
26+
id("org.jetbrains.dokka") version "1.4.0"
2527
}
2628

2729
buildscript {
@@ -43,14 +45,30 @@ allprojects {
4345
jcenter()
4446
maven { setUrl("https://jitpack.io") }
4547
}
48+
49+
tasks.withType<DokkaTask> {
50+
outputDirectory.set(buildDir.resolve("reports/dokka"))
51+
52+
dokkaSourceSets {
53+
configureEach {
54+
skipDeprecated.set(true)
55+
56+
sourceLink {
57+
localDirectory.set(rootDir)
58+
remoteUrl.set(URL("https://github.com/appmattus/kotlinfixture/blob/main/"))
59+
remoteLineSuffix.set("#L")
60+
}
61+
}
62+
}
63+
}
4664
}
4765

4866
tasks.register<Delete>("clean") {
4967
delete(rootProject.buildDir)
5068
}
5169

5270
dependencies {
53-
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.11.2")
71+
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.12.0")
5472
}
5573

5674
detekt {
@@ -63,26 +81,9 @@ detekt {
6381
config = files("detekt-config.yml")
6482
}
6583

66-
val dokka = tasks.named<DokkaTask>("dokka") {
67-
outputFormat = "html"
68-
outputDirectory = "$buildDir/reports/dokka"
69-
70-
subProjects = listOf(
71-
"fixture",
72-
"fixture-generex",
73-
"fixture-javafaker",
74-
"fixture-kotest"
75-
)
76-
77-
configuration {
78-
skipDeprecated = true
79-
80-
sourceLink {
81-
path = "$rootDir"
82-
url = "https://github.com/appmattus/kotlinfixture/blob/main/"
83-
lineSuffix = "#L"
84-
}
85-
}
84+
val dokka = tasks.named<DokkaMultiModuleTask>("dokkaHtmlMultiModule") {
85+
outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
86+
documentationFileName.set("module.md")
8687
}
8788

8889
tasks.register("check").dependsOn(dokka)

cve-suppressions.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,43 @@
1818

1919
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.2.xsd">
2020

21+
<suppress>
22+
<notes><![CDATA[
23+
CVE relates to use of jQuery by dokka which is considered safe
24+
]]></notes>
25+
<sha1>46a436eba01c79acdb225757ed80bf54bad6416b</sha1>
26+
<cve>CVE-2019-11358</cve>
27+
</suppress>
28+
<suppress>
29+
<notes><![CDATA[
30+
CVE relates to use of jQuery by dokka which is considered safe
31+
]]></notes>
32+
<sha1>46a436eba01c79acdb225757ed80bf54bad6416b</sha1>
33+
<cve>CVE-2020-11022</cve>
34+
</suppress>
35+
<suppress>
36+
<notes><![CDATA[
37+
CVE relates to use of jQuery by dokka which is considered safe
38+
]]></notes>
39+
<sha1>46a436eba01c79acdb225757ed80bf54bad6416b</sha1>
40+
<cve>CVE-2020-11022</cve>
41+
</suppress>
42+
<suppress>
43+
<notes><![CDATA[
44+
CVE relates to use of jQuery by dokka which is considered safe
45+
]]></notes>
46+
<sha1>46a436eba01c79acdb225757ed80bf54bad6416b</sha1>
47+
<cve>CVE-2020-11023</cve>
48+
</suppress>
49+
50+
<suppress>
51+
<notes><![CDATA[
52+
CVE relates to Kotlin from 1.4-M1 to 1.4-RC. No vulnerability as using Kotlin ≥ 1.4.0
53+
]]></notes>
54+
<gav regex="true">^org\.jetbrains\.(kotlin|dokka):kotlin-.*:.*$</gav>
55+
<cve>CVE-2020-15824</cve>
56+
</suppress>
57+
2158
<suppress>
2259
<notes><![CDATA[
2360
CVE relates to dokka. No vulnerability as using Kotlin ≥ 1.3.30

fixture-android-tests/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ dependencies {
5454
implementation(kotlin("stdlib-jdk8"))
5555
api(project(":fixture"))
5656

57-
testImplementation("androidx.test:core:1.2.0")
58-
testImplementation("androidx.test:runner:1.2.0")
59-
testImplementation("androidx.test.ext:junit:1.1.1")
60-
testImplementation("org.robolectric:robolectric:4.3.1") {
57+
testImplementation("androidx.test:core:1.3.0")
58+
testImplementation("androidx.test:runner:1.3.0")
59+
testImplementation("androidx.test.ext:junit:1.1.2")
60+
testImplementation("org.robolectric:robolectric:4.4") {
6161
exclude(group = "com.google.auto.service", module = "auto-service")
6262
}
6363

fixture-generex/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1919
plugins {
2020
kotlin("jvm")
2121
id("com.android.lint")
22+
id("org.jetbrains.dokka")
2223
}
2324

2425
apply(from = "$rootDir/gradle/scripts/bintray.gradle.kts")

fixture-generex/module.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fixture-generex
2+
3+
To generate a random string from a regular expression, look no further
4+
than the [Generex](https://github.com/mifmif/Generex) integration

fixture-javafaker/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1919
plugins {
2020
kotlin("jvm")
2121
id("com.android.lint")
22+
id("org.jetbrains.dokka")
2223
}
2324

2425
apply(from = "$rootDir/gradle/scripts/bintray.gradle.kts")
@@ -29,6 +30,11 @@ dependencies {
2930
api(kotlin("stdlib-jdk8"))
3031
api(project(":fixture"))
3132
api("com.github.javafaker:javafaker:1.0.2")
33+
api("org.yaml:snakeyaml:android") {
34+
version {
35+
strictly("1.26")
36+
}
37+
}
3238

3339
testImplementation("junit:junit:4.13")
3440
testImplementation(kotlin("test"))

fixture-javafaker/module.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fixture-javafaker
2+
3+
Generate values with a closer match to real data using
4+
[Java Faker](http://dius.github.io/java-faker/)

fixture-javafaker/src/test/kotlin/com/appmattus/kotlinfixture/decorator/fake/javafaker/JavaFakerStrategyTest.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,14 @@ class JavaFakerStrategyTest {
319319
}
320320

321321
repeat(100) {
322-
assertEquals(2, fixture<Person> {
323-
javaFakerStrategy {
324-
password = Password(2, 2)
325-
}
326-
}.password.length)
322+
assertEquals(
323+
2,
324+
fixture<Person> {
325+
javaFakerStrategy {
326+
password = Password(2, 2)
327+
}
328+
}.password.length
329+
)
327330
}
328331
}
329332

fixture-kotest/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1919
plugins {
2020
kotlin("jvm")
2121
id("com.android.lint")
22+
id("org.jetbrains.dokka")
2223
}
2324

2425
apply(from = "$rootDir/gradle/scripts/bintray.gradle.kts")
@@ -28,7 +29,7 @@ apply(from = "$rootDir/gradle/scripts/dokka-javadoc.gradle.kts")
2829
dependencies {
2930
api(kotlin("stdlib-jdk8"))
3031
api(project(":fixture"))
31-
api("io.kotest:kotest-property-jvm:4.2.0")
32+
api("io.kotest:kotest-property-jvm:4.2.3")
3233

3334
testImplementation("junit:junit:4.13")
3435
testImplementation(kotlin("test"))

fixture-kotest/module.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# fixture-kotest
2+
3+
[KotlinFixture](https://github.com/appmattus/kotlinfixture) powered
4+
property based testing for [Kotest](https://github.com/kotest/kotest/)

0 commit comments

Comments
 (0)