-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: Prepare for v0.2.5, update Release pattern. (#43)
Bump release version, update release patterns to be closer to convention.
- Loading branch information
Showing
6 changed files
with
108 additions
and
74 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
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,99 +1,115 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
kotlin("jvm") version "1.9.24" | ||
alias(libs.plugins.maven.publishing) | ||
alias(libs.plugins.kotlin) | ||
alias(libs.plugins.maven.publishing) | ||
|
||
id("io.gitlab.arturbosch.detekt") version "1.23.6" | ||
alias(libs.plugins.detekt) | ||
} | ||
|
||
group = "com.faire.detektrules" | ||
version = "0.1.0" | ||
group = "com.faire" | ||
version = "0.2.5" | ||
|
||
if (!providers.environmentVariable("RELEASE").isPresent) { | ||
val gitSha = providers.environmentVariable("GITHUB_SHA") | ||
.orElse( | ||
provider { | ||
// nest the provider, we don't want to invalidate the config cache for this | ||
providers.exec { commandLine("git", "rev-parse", "--short", "HEAD") } | ||
.standardOutput | ||
.asText | ||
.get() | ||
} | ||
) | ||
.get() | ||
|
||
version = "$version-$gitSha-SNAPSHOT" | ||
} | ||
|
||
val detektVersion = "1.23.6" | ||
val detektVersion = libs.versions.detekt.get() | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
implementation(kotlin("compiler-embeddable")) | ||
runtimeOnly(kotlin("reflect")) | ||
implementation(kotlin("stdlib")) | ||
implementation(kotlin("compiler-embeddable")) | ||
runtimeOnly(kotlin("reflect")) | ||
|
||
implementation(libs.detekt.api) | ||
implementation(libs.detekt.api) | ||
|
||
runtimeOnly(libs.detekt.formatting) | ||
runtimeOnly(libs.detekt.formatting) | ||
|
||
testImplementation(libs.assertj) | ||
testImplementation(libs.detekt.test) | ||
testImplementation(libs.guava) | ||
testImplementation(libs.junit.jupiter.api) | ||
testImplementation(libs.assertj) | ||
testImplementation(libs.detekt.test) | ||
testImplementation(libs.guava) | ||
testImplementation(libs.junit.jupiter.api) | ||
|
||
testRuntimeOnly(libs.junit.jupiter.engine) | ||
testRuntimeOnly(libs.junit.jupiter.engine) | ||
|
||
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion") | ||
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-ruleauthors:$detektVersion") | ||
detektPlugins("com.braisgabin.detekt:kotlin-compiler-wrapper:0.0.4") | ||
detektPlugins(rootProject) | ||
detektPlugins(libs.detekt.formatting) | ||
detektPlugins(libs.detekt.ruleauthors) | ||
detektPlugins(libs.detekt.compiler.wrapper) | ||
detektPlugins(rootProject) | ||
} | ||
|
||
detekt { | ||
parallel = true | ||
autoCorrect = true | ||
parallel = true | ||
autoCorrect = true | ||
|
||
buildUponDefaultConfig = true | ||
config.from(rootProject.file("detekt.yaml")) | ||
buildUponDefaultConfig = true | ||
config.from(rootProject.file("detekt.yaml")) | ||
|
||
allRules = false // activate all available (even unstable) rules. | ||
allRules = false // activate all available (even unstable) rules. | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform() | ||
useJUnitPlatform() | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(8) | ||
jvmToolchain(8) | ||
} | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.DEFAULT, true) | ||
signAllPublications() | ||
|
||
pom { | ||
name = "faire-detekt-rules" | ||
description = "Detekt rules for Faire" | ||
inceptionYear = "2023" | ||
url = "https://github.com/Faire/faire-detekt-rules" | ||
|
||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
distribution = "repo" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "Faire" | ||
name = "Faire Developers" | ||
} | ||
} | ||
|
||
organization { | ||
name = "Faire" | ||
url = "https://www.faire.com" | ||
} | ||
|
||
issueManagement { | ||
system = "GitHub" | ||
url = "https://github.com/Faire/faire-detekt-rules/issues" | ||
} | ||
|
||
scm { | ||
connection = "scm:git:git://github.com/Faire/faire-detekt-rules.git" | ||
url = "https://github.com/Faire/faire-detekt-rules" | ||
} | ||
publishToMavenCentral(SonatypeHost.DEFAULT, true) | ||
signAllPublications() | ||
|
||
pom { | ||
name = "faire-detekt-rules" | ||
description = "Detekt rules for Faire" | ||
inceptionYear = "2023" | ||
url = "https://github.com/Faire/faire-detekt-rules" | ||
|
||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
distribution = "repo" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "Faire" | ||
name = "Faire Developers" | ||
} | ||
} | ||
|
||
organization { | ||
name = "Faire" | ||
url = "https://www.faire.com" | ||
} | ||
} | ||
|
||
issueManagement { | ||
system = "GitHub" | ||
url = "https://github.com/Faire/faire-detekt-rules/issues" | ||
} | ||
|
||
scm { | ||
connection = "scm:git:git://github.com/Faire/faire-detekt-rules.git" | ||
url = "https://github.com/Faire/faire-detekt-rules" | ||
} | ||
} | ||
} |
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,4 @@ | ||
kotlin.code.style=official | ||
|
||
GROUP=com.faire | ||
POM_ARTIFACT_ID=faire-detekt-rules | ||
VERSION_NAME=0.2.4 | ||
org.gradle.configuration-cache=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