-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8534d4
commit 8687e07
Showing
37 changed files
with
1,349 additions
and
892 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
37 changes: 37 additions & 0 deletions
37
build-logic/build-conventions/src/main/kotlin/local.analysis-conventions.gradle.kts
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,37 @@ | ||
import io.gitlab.arturbosch.detekt.Detekt | ||
import io.gitlab.arturbosch.detekt.extensions.DetektExtension | ||
import org.jlleitschuh.gradle.ktlint.KtlintExtension | ||
|
||
plugins { | ||
id("io.gitlab.arturbosch.detekt") | ||
id("org.jlleitschuh.gradle.ktlint") | ||
} | ||
|
||
configure<DetektExtension> { | ||
buildUponDefaultConfig = true | ||
allRules = false | ||
config = files("${rootDir.path}/detekt.yml") | ||
source = files("**/kotlin/**") | ||
} | ||
|
||
tasks.withType<Detekt>().configureEach { | ||
reports { | ||
html.required.set(true) | ||
xml.required.set(false) | ||
txt.required.set(false) | ||
sarif.required.set(false) | ||
} | ||
} | ||
|
||
configure<KtlintExtension> { | ||
debug.set(false) | ||
verbose.set(true) | ||
android.set(false) | ||
outputToConsole.set(true) | ||
ignoreFailures.set(false) | ||
enableExperimentalRules.set(false) | ||
filter { | ||
exclude("**/generated/**") | ||
include("**/kotlin/**") | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
style: | ||
ReturnCount: | ||
active: false | ||
MagicNumber: | ||
active: false | ||
ForbiddenComment: | ||
active: false | ||
ThrowsCount: | ||
active: true | ||
excludeGuardClauses: true | ||
MaxLineLength: | ||
excludeCommentStatements: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
[versions] | ||
kotlin = "1.7.10" | ||
|
||
arrow = "1.1.3" | ||
jgit = "6.3.0.202209071007-r" | ||
kotlin = "1.8.0" | ||
|
||
# Library versions | ||
detekt = "1.22.0" | ||
gradle-plugin-publish = "1.1.0" | ||
jgit = "6.4.0.202211300538-r" | ||
kotest = "5.5.4" | ||
kotest-extensions-arrow = "1.2.5" | ||
logback-classic = "1.4.4" | ||
ktlint-gradle = "11.0.0" | ||
swiftzer-semver = "1.2.0" | ||
|
||
gradle-plugin-publish = "1.1.0" | ||
github-release = "2.4.+" | ||
gradle-semver-plugin = "0.6.+" | ||
# Plugin versions | ||
dependency-analysis = "1.18.0" | ||
github-release = "2.4.1" | ||
gradle-semver-plugin = "0.9.1" | ||
|
||
[libraries] | ||
arrow-core = { module = "io.arrow-kt:arrow-core", version.ref = "arrow" } | ||
eclipse-jgit-eclipseJgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version.ref = "jgit" } | ||
eclipse-jgit-ssh-apache = { module = "org.eclipse.jgit:org.eclipse.jgit.ssh.apache", version.ref = "jgit" } | ||
|
||
kotest-junit5-jvm = { module = "io.kotest:kotest-runner-junit5-jvm", version.ref = "kotest" } | ||
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" } | ||
kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" } | ||
kotest-assertions-arrow = { module = "io.kotest.extensions:kotest-assertions-arrow", version.ref = "kotest-extensions-arrow" } | ||
|
||
# Libraries | ||
eclipse-jgit-eclipseJgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version.ref = "jgit" } | ||
swiftzer-semver = { module = "net.swiftzer.semver:semver", version.ref = "swiftzer-semver" } | ||
logbackClassic = { module = "ch.qos.logback:logback-classic", version.ref = "logback-classic" } | ||
|
||
# this is the library version of the gradle-plugin-publish so that it can be given to our convention plugin | ||
# Plugins needed as libraries | ||
gradle-plugin-publish = { module = "com.gradle.plugin-publish:com.gradle.plugin-publish.gradle.plugin", version.ref = "gradle-plugin-publish" } | ||
detekt = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" } | ||
ktlint = { module = "org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin", version.ref = "ktlint-gradle" } | ||
|
||
# Test Libraries | ||
kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" } | ||
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" } | ||
kotest-junit5-jvm = { module = "io.kotest:kotest-runner-junit5-jvm", version.ref = "kotest" } | ||
|
||
[bundles] | ||
kotest = [ "kotest-junit5-jvm", "kotest-assertions-core-jvm", "kotest-assertions-arrow", "kotest-framework-datatest" ] | ||
|
||
kotest = ["kotest-junit5-jvm", "kotest-assertions-core-jvm", "kotest-framework-datatest"] | ||
|
||
[plugins] | ||
|
||
dependency-analysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "dependency-analysis" } | ||
github-release = { id = "com.github.breadmoirai.github-release", version.ref = "github-release" } | ||
gradle-plugin-publish = { id = "com.gradle.plugin-publish", version.ref = "gradle-plugin-publish" } | ||
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | ||
semver = { id = "com.figure.gradle.semver-plugin", version.ref = "gradle-semver-plugin" } | ||
|
Binary file not shown.
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Oops, something went wrong.