Prepare 1.7.1 release (#2517)

* Update dependencies for 1.7.1 release

* Delete obsolete ROADMAP file

* Update gradle wrapper to 6.3 supporting JDK14

* Use github-release plugin to publish changelogs to GitHub

* Use 1.7.1 gradle plugin for self analysis

* Use findProperty to force null on missing
This commit is contained in:
Artur Bosch
2020-03-26 20:37:35 +01:00
committed by GitHub
parent 34ccbc434f
commit d5a59f3331
8 changed files with 71 additions and 62 deletions

View File

@@ -1,47 +0,0 @@
# Roadmap
This document is deprecated.
Please follow https://github.com/arturbosch/detekt/milestones
for current roadmap based on milestone feature of GitHub.
## ~ 1.0.0
### todo
- release RC15 and fix regressions
### done
- Overall improve documentation of detekt.
- We now have a website: arturbosch.github.io/detekt
- Refine threshold definition
- an output format (like checkstyle etc - thx to @winterDroid)
- Resolve `formatting` issues, integrate ktlint fixes OR `integrate ktlint` into detekt for formatting
- Resolve `java9` java.xml.bind issue
- `gradle-plugin` should support `profiles` for yaml configurations -> different rules for different source sets eg. test
- `jcenter` publishing
- Windows support!
- `sonar-plugin` (has it's own space [here](https://github.com/arturbosch/sonar-kotlin))
- Allow to exclude rules or rule sets for test sources
- figure out how kotlinc/intellij does type and symbol resolution
- rework gradle plugin to behave like other static analysis tools
- `no new complex rules` (maybe only some easy or contributed ones)
## > 1.0.0
- finish `FeatureEnvy` rule -> needs type resolution
## Ideas for new major versions
### Finished or Started
- `idea-plugin` -> https://github.com/arturbosch/detekt-intellij-plugin
- `jenkins-plugin` -> The [`Jenkins Warnings Plugin - Next Generation`](https://github.com/jenkinsci/warnings-ng-plugin) supports importing `detekt`'s xml format.
## Won't do
- implement formatting rules, instead please use:
- `detekt-formatting`, a wrapper over KtLint
- [KtLint](https://github.com/pinterest/ktlint)
- [IntelliJ's format.sh](https://www.jetbrains.com/help/idea/command-line-formatter.html)
- or `detektIdeaFormat` and `detektIdeaInspect` wrapper over a local intellij

View File

@@ -10,16 +10,17 @@ import org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig
import java.util.Date
plugins {
id("io.gitlab.arturbosch.detekt")
jacoco
kotlin("jvm")
`maven-publish`
jacoco
id("io.gitlab.arturbosch.detekt")
id("com.jfrog.artifactory") apply false
id("com.jfrog.bintray")
id("org.jetbrains.dokka") apply false
id("com.github.ben-manes.versions")
kotlin("jvm")
id("com.github.johnrengelman.shadow") apply false
id("org.sonarqube")
id("com.github.breadmoirai.github-release")
}
buildScan {
@@ -346,3 +347,21 @@ val detektProjectBaseline by tasks.registering(DetektCreateBaselineTask::class)
exclude("**/resources/**")
exclude("**/build/**")
}
// release section
githubRelease {
token(project.findProperty("github.token") as? String ?: "")
owner.set("arturbosch")
repo.set("detekt")
overwrite.set(true)
dryRun.set(false)
body {
var changelog = project.file("docs/pages/changelog 1.x.x.md").readText()
val sectionStart = "#### ${project.version}"
changelog = changelog.substring(changelog.indexOf(sectionStart) + sectionStart.length)
changelog = changelog.substring(0, changelog.indexOf("#### 1"))
changelog.trim()
}
releaseAssets.setFrom(project(":detekt-cli").buildDir.resolve("libs/detekt-cli-${project.version}-all.jar"))
}

View File

@@ -29,9 +29,9 @@ object MultiVersionTest : Spek({
private fun getGradleVersionsUnderTest() =
if (getJdkVersion() < 13) {
listOf("5.0", "6.2.1")
listOf("5.0", "6.2.2")
} else {
listOf("6.2.1")
listOf("6.3")
}
private fun getJdkVersion(): Int {

View File

@@ -5,8 +5,45 @@ keywords: changelog, release-notes, migration
permalink: changelog.html
toc: true
---
#### 1.7.1
#### 1.7.0 - Upcoming
##### Changelog
- UnnecessaryAbstractClass: fix false positive when abstract class has abstract inherited members - [#2513](https://github.com/arturbosch/detekt/pull/2513)
- UnusedPrivateMember: report unused overloaded operators - [#2510](https://github.com/arturbosch/detekt/pull/2510)
- Fix build compile error resulted from merging two conflicting PRs - [#2508](https://github.com/arturbosch/detekt/pull/2508)
- Update Kotlin to 1.3.71 - [#2507](https://github.com/arturbosch/detekt/pull/2507)
- Remove duplicated test task setup for gradle plugin - [#2506](https://github.com/arturbosch/detekt/pull/2506)
- Add LicenceHeaderExtension test to verify resource path loading is supported - [#2505](https://github.com/arturbosch/detekt/pull/2505)
- Ensure filesystems are created so paths can be gotten - [#2504](https://github.com/arturbosch/detekt/pull/2504)
- FileSystemNotFoundException in detekt 1.7.0 when using --config-resource - [#2503](https://github.com/arturbosch/detekt/issues/2503)
- MemberNameEqualsClassName: fix false negative when function has no explicit return type - [#2502](https://github.com/arturbosch/detekt/pull/2502)
- Use the system-dependent line separator in NotificationReport - [#2497](https://github.com/arturbosch/detekt/pull/2497)
- Remove default print stream - [#2496](https://github.com/arturbosch/detekt/pull/2496)
- Don't use System.out in the ProgressListeners - [#2495](https://github.com/arturbosch/detekt/pull/2495)
- Make the gradle plugin a sub project again - [#2493](https://github.com/arturbosch/detekt/pull/2493)
- Move test factory outside the main code - [#2491](https://github.com/arturbosch/detekt/pull/2491)
- Single runner - [#2490](https://github.com/arturbosch/detekt/pull/2490)
- ProcessingSettings - [#2489](https://github.com/arturbosch/detekt/pull/2489)
- Don't use println :detekt-generator - [#2488](https://github.com/arturbosch/detekt/pull/2488)
- Simplify tests with StringPrintStream - [#2487](https://github.com/arturbosch/detekt/pull/2487)
- Improve tests - [#2486](https://github.com/arturbosch/detekt/pull/2486)
- Use PrinterStream in AstPrinter - [#2485](https://github.com/arturbosch/detekt/pull/2485)
- Errors running detekt in the detekt project - [#2484](https://github.com/arturbosch/detekt/issues/2484)
- Unify yml strings - [#2482](https://github.com/arturbosch/detekt/pull/2482)
- Use yml arrays to list the ForbiddenImports - [#2474](https://github.com/arturbosch/detekt/pull/2474)
- Add date, detekt-version + link to HtmlReport - [#2470](https://github.com/arturbosch/detekt/pull/2470)
- Refactor FindingsReport + FileBasedFindingsReport - [#2454](https://github.com/arturbosch/detekt/pull/2454)
- The Detekt HTML Report should include date, version number, website link (Feature Request) - [#2416](https://github.com/arturbosch/detekt/issues/2416)
- Added validation of constructors to LongParameterList - [#2410](https://github.com/arturbosch/detekt/pull/2410)
- UnusedPrivateMember doesn't report the correct warning count - [#1981](https://github.com/arturbosch/detekt/issues/1981)
- UnusedPrivateMember should consider overloaded operators - [#1444](https://github.com/arturbosch/detekt/issues/1444)
- False positive on rule UnnecessaryAbstractClass - [#727](https://github.com/arturbosch/detekt/issues/727)
- MemberNameEqualsClassName ignores functions which return a single expression - [#655](https://github.com/arturbosch/detekt/issues/655)
See all issues at: [1.7.1](https://github.com/arturbosch/detekt/milestone/60)
#### 1.7.0
##### Notable Changes

View File

@@ -1,18 +1,18 @@
detektVersion=1.7.0
detektAnalysisVersion=1.7.0
detektVersion=1.7.1
detektAnalysisVersion=1.7.1
# Project dependencies
assertjVersion=3.15.0
jcommanderVersion=1.78
junitPlatformVersion=1.6.0
junitPlatformVersion=1.6.1
ktlintVersion=0.36.0
reflectionsVersion=0.9.12
spekVersion=2.0.10
yamlVersion=1.25
yamlVersion=1.26
mockkVersion=1.9.3
# Gradle plugins
artifactoryVersion=4.14.1
artifactoryVersion=4.15.1
bintrayVersion=1.8.4
buildScanVersion=3.1.1
dokkaVersion=0.10.1
@@ -21,9 +21,7 @@ jacocoVersion=0.8.5
kotlinVersion=1.3.71
shadowVersion=5.2.0
sonarQubeVersion=2.8
# Gradle version
gradleVersion=6.2.1
githubReleaseVersion=2.2.12
kotlin.code.style=official

Binary file not shown.

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -21,6 +21,7 @@ pluginManagement {
val shadowVersion: String by settings
val sonarQubeVersion: String by settings
val detektAnalysisVersion: String by settings
val githubReleaseVersion: String by settings
repositories {
maven { setUrl("https://plugins.gradle.org/m2/") }
@@ -36,6 +37,7 @@ pluginManagement {
kotlin("jvm") version kotlinVersion
id("com.github.johnrengelman.shadow") version shadowVersion
id("org.sonarqube") version sonarQubeVersion
id("com.github.breadmoirai.github-release") version githubReleaseVersion
}
}