Skip to content

Commit 6c829ed

Browse files
committed
Correct package names according to new repository
1 parent 44205f5 commit 6c829ed

25 files changed

+68
-274
lines changed
File renamed without changes.

CHANGELOG.md

+3-140
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,7 @@
11
Change Log
22
==========
33

4-
[Version 1.2](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v1.2)
5-
--------------------------
4+
Older Versions
5+
-------------
66

7-
- Add support for SpotBugs [PR#209](https://github.com/novoda/gradle-static-analysis-plugin/pull/209)
8-
- Fixed an issue caused by combination of Gradle 5.6 and kotlin-kapt [#199](https://github.com/novoda/gradle-static-analysis-plugin/issues/199)
9-
- Fix: Removed usage of deprecated Android APIs [PR#212](https://github.com/novoda/gradle-static-analysis-plugin/pull/212)
10-
- Findbugs support is deprecated [PR#216](https://github.com/novoda/gradle-static-analysis-plugin/pull/216)
11-
12-
[Version 1.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v1.1)
13-
--------------------------
14-
15-
- Add support for Ktlint Plugin: `9.0.0`. Thanks [Adam McNeilly](https://github.com/AdamMc331) for the contribution [PR#202](https://github.com/novoda/gradle-static-analysis-plugin/pull/202)
16-
- Update project to use Gradle 5.6.3. [PR#203](https://github.com/novoda/gradle-static-analysis-plugin/pull/203)
17-
- Note: Minimum supported Gradle version is still 4.x (tested with 4.3.1)
18-
- Update docs [PR#194](https://github.com/novoda/gradle-static-analysis-plugin/pull/194)
19-
20-
[Version 1.0](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v1.0)
21-
--------------------------
22-
23-
- Add support for task configuration avoidance [PR#184](https://github.com/novoda/gradle-static-analysis-plugin/pull/184) [PR#186](https://github.com/novoda/gradle-static-analysis-plugin/pull/186) [PR#189](https://github.com/novoda/gradle-static-analysis-plugin/pull/189)
24-
- This is a big performance improvement and a recommended upgrade for all users.
25-
- Unless `evaluateViolations` or `check` task is run explicitly, no task will be configured eagerly.
26-
- More info on Gradle: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
27-
- Removed support for older versions of Ktlint and Detekt
28-
- Minimum supported Ktlint Plugin: `6.2.1`
29-
- Minimum supported Detekt Plugin: `1.0.0.RC9.2`
30-
- Fix: In some cases Groovy closures would use wrong scope [PR#185](https://github.com/novoda/gradle-static-analysis-plugin/pull/185)
31-
- Fix: check task not found on empty project [PR#187](https://github.com/novoda/gradle-static-analysis-plugin/pull/187)
32-
- Detekt is automatically configured to disable failFast since failure is handled by Static Analysis Plugin [PR#186](https://github.com/novoda/gradle-static-analysis-plugin/pull/186)
33-
- Update sample with new versions and make use of task configuration avoidance [PR#188](https://github.com/novoda/gradle-static-analysis-plugin/pull/188)
34-
35-
[Version 0.8.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.8.1)
36-
--------------------------
37-
38-
- Removed use of `classesDir` because deprecated in Gradle 5.x ([PR#174](https://github.com/novoda/gradle-static-analysis-plugin/pull/174),
39-
[PR#178](https://github.com/novoda/gradle-static-analysis-plugin/pull/178),
40-
[PR#179](https://github.com/novoda/gradle-static-analysis-plugin/pull/179),
41-
[PR#180](https://github.com/novoda/gradle-static-analysis-plugin/pull/180))
42-
- Included new versions of Ktlint in functional tests ([PR#167](https://github.com/novoda/gradle-static-analysis-plugin/pull/167))
43-
- Added automatic tagging of snapshot releases ([PR#176](https://github.com/novoda/gradle-static-analysis-plugin/pull/176))
44-
45-
46-
[Version 0.8](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.8)
47-
--------------------------
48-
49-
- Fix integration for all versions of Ktlint plugin [PR#153](https://github.com/novoda/gradle-static-analysis-plugin/pull/153)
50-
- Make Findbugs Html report generation optional [PR#154](https://github.com/novoda/gradle-static-analysis-plugin/pull/154)
51-
```
52-
staticAnalysis {
53-
findbugs {
54-
htmlReportEnabled false
55-
}
56-
}
57-
```
58-
- Display total number of errors and warnings [PR#159](https://github.com/novoda/gradle-static-analysis-plugin/pull/159)
59-
- Less verbose Findbugs output [PR#160](https://github.com/novoda/gradle-static-analysis-plugin/pull/160)
60-
61-
[Version 0.7](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.7)
62-
--------------------------
63-
64-
- Fix Detekt RC9.x and RC10 integrations [PR#144](https://github.com/novoda/gradle-static-analysis-plugin/pull/144)
65-
- Fix Ktlint integration [PR#145](https://github.com/novoda/gradle-static-analysis-plugin/pull/145)
66-
- 6.1.0 and 6.2.1 versions are broken for Android projects because of [a bug in Ktlint](https://github.com/JLLeitschuh/ktlint-gradle/issues/153#issuecomment-437176852)
67-
- Make Findbugs Html report generation cacheable [PR#148](https://github.com/novoda/gradle-static-analysis-plugin/pull/148)
68-
- Use Gradle composite builds in sample projects [PR#142](https://github.com/novoda/gradle-static-analysis-plugin/pull/142)
69-
- Improve docs [PR#128](https://github.com/novoda/gradle-static-analysis-plugin/pull/128), [PR#132](https://github.com/novoda/gradle-static-analysis-plugin/pull/132)
70-
71-
[Version 0.6](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.6)
72-
--------------------------
73-
74-
- Fix release to plugin portal ([PR#82](https://github.com/novoda/gradle-static-analysis-plugin/pull/82), [PR#83](https://github.com/novoda/gradle-static-analysis-plugin/pull/83))
75-
- Improve plugin documentation and samples ([PR#85](https://github.com/novoda/gradle-static-analysis-plugin/pull/85),
76-
[PR#97](https://github.com/novoda/gradle-static-analysis-plugin/pull/97),
77-
[PR#99](https://github.com/novoda/gradle-static-analysis-plugin/pull/99),
78-
[PR#100](https://github.com/novoda/gradle-static-analysis-plugin/pull/100),
79-
[PR#101](https://github.com/novoda/gradle-static-analysis-plugin/pull/101),
80-
[PR#113](https://github.com/novoda/gradle-static-analysis-plugin/pull/113),
81-
[PR#123](https://github.com/novoda/gradle-static-analysis-plugin/pull/123),
82-
[PR#124](https://github.com/novoda/gradle-static-analysis-plugin/pull/124))
83-
- Improve support for Android Lint ([PR#105](https://github.com/novoda/gradle-static-analysis-plugin/pull/105))
84-
- Improve support for Detekt ([PR#90](https://github.com/novoda/gradle-static-analysis-plugin/pull/90), [PR#121](https://github.com/novoda/gradle-static-analysis-plugin/pull/121))
85-
- Rename built-in `failOnWarnings` penalty to `failFast` ([PR#92](https://github.com/novoda/gradle-static-analysis-plugin/pull/92))
86-
- Support multiple configurations for `Pmd`, `Findbugs`, `Checkstyle` ([PR#93](https://github.com/novoda/gradle-static-analysis-plugin/pull/93))
87-
- Support automatic snapshot builds from `develop` ([PR#106](https://github.com/novoda/gradle-static-analysis-plugin/pull/106),[PR#107](https://github.com/novoda/gradle-static-analysis-plugin/pull/107))
88-
- Automatically exclude Kotlin files from Java code quality tools ([PR#109](https://github.com/novoda/gradle-static-analysis-plugin/pull/109))
89-
- Integrate [KtLint](https://github.com/shyiko/ktlint) ([PR#110](https://github.com/novoda/gradle-static-analysis-plugin/pull/110))
90-
91-
[Version 0.5.2](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.5.2)
92-
--------------------------
93-
94-
- Add support for variants Filtering in Android Lint ([PR#79](https://github.com/novoda/gradle-static-analysis-plugin/pull/79))
95-
96-
[Version 0.5.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.5.1)
97-
--------------------------
98-
99-
- Add `Violations` to public API ([PR#69](https://github.com/novoda/gradle-static-analysis-plugin/pull/69))
100-
- Custom violations evaluators ([PR#68](https://github.com/novoda/gradle-static-analysis-plugin/pull/68))
101-
102-
[Version 0.5](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.5)
103-
--------------------------
104-
105-
- Integrate [detekt](https://github.com/arturbosch/detekt), a static analysis tool for Kotlin ([PR#58](https://github.com/novoda/gradle-static-analysis-plugin/pull/58))
106-
- Integrate [Android Lint](https://developer.android.com/studio/write/lint.html), a linter and static analysis tool for Android projects ([PR#62](https://github.com/novoda/gradle-static-analysis-plugin/pull/62))
107-
108-
[Version 0.4.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.4.1)
109-
--------------------------
110-
111-
- Ensure invariant over multiple successive runs ([PR#30](https://github.com/novoda/gradle-static-analysis-plugin/pull/30))
112-
113-
[Version 0.4](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.4)
114-
--------------------------
115-
116-
- Filtering for Android variants ([PR#28](https://github.com/novoda/gradle-static-analysis-plugin/pull/28))
117-
- Support for rules as maven artifact ([PR#27](https://github.com/novoda/gradle-static-analysis-plugin/pull/27))
118-
- Added support for custom base url for reports in logs ([PR#25](https://github.com/novoda/gradle-static-analysis-plugin/pull/25))
119-
120-
[Version 0.3.2](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.3.2)
121-
--------------------------
122-
123-
- Better classes filtering for Findbugs tasks ([PR#23](https://github.com/novoda/gradle-static-analysis-plugin/pull/23))
124-
125-
[Version 0.3.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.3.1)
126-
--------------------------
127-
128-
- Honor exclude filters in Findbugs tasks ([PR#20](https://github.com/novoda/gradle-static-analysis-plugin/pull/20))
129-
130-
[Version 0.3](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.3)
131-
--------------------------
132-
133-
- Honour project variants when creating tasks for Checkstyle and PMD ([PR#16](https://github.com/novoda/gradle-static-analysis-plugin/pull/16))
134-
135-
[Version 0.2](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.2)
136-
--------------------------
137-
138-
- Improved `exclude` rules support ([PR#8](https://github.com/novoda/gradle-static-analysis-plugin/pull/8))
139-
- Enforced default effort and report level for Findbugs ([PR#6](https://github.com/novoda/gradle-static-analysis-plugin/pull/6))
140-
141-
[Version 0.1](https://github.com/novoda/gradle-static-analysis-plugin/releases/tag/v0.1)
142-
--------------------------
143-
144-
- Initial release.
7+
Please refer to Novoda's repository for versions older than 1.2: https://github.com/novoda/gradle-static-analysis-plugin/blob/master/CHANGELOG.md

NOTICE

-13
This file was deleted.

README.md

+25-46
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Gradle static analysis plugin
2-
[![](https://ci.novoda.com/buildStatus/icon?job=gradle-static-analysis-plugin)](https://ci.novoda.com/job/gradle-static-analysis-plugin/lastSuccessfulBuild) [![](https://img.shields.io/badge/License-Apache%202.0-lightgrey.svg)](LICENSE.txt) [![Bintray](https://api.bintray.com/packages/novoda-oss/maven/gradle-static-analysis-plugin/images/download.svg)](https://bintray.com/novoda-oss/maven/gradle-static-analysis-plugin/_latestVersion)
2+
![CI](https://github.com/GradleUp/gradle-static-analysis-plugin/workflows/ci/badge.svg)
3+
[![](https://img.shields.io/badge/License-Apache%202.0-lightgrey.svg)](LICENSE.txt)
34

45
A Gradle plugin to easily apply the same setup of static analysis tools across different Android, Java or Kotlin projects.
56

67
Supports [Task Configuration Avoidance](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html) so that you have zero overhead in build speeds when you use this plugin!
78

89
## Description
9-
Gradle supports many popular static analysis (Checkstyle, PMD, FindBugs, etc) via a set of built-in plugins.
10+
Gradle supports many popular static analysis (Checkstyle, PMD, SpotBugs, etc) via a set of built-in plugins.
1011
Using these plugins in an Android module will require an additional setup to compensate for the differences between
11-
the model adopted by the Android plugin compared to the the Java one.
12+
the model adopted by the Android plugin compared to the Java one.
1213

1314
The `gradle-static-analysis-plugin` aims to provide:
1415
- flexible, configurable penalty strategy for builds
@@ -21,7 +22,6 @@ The plugin supports various static analysis tools for Java, Kotlin and Android p
2122

2223
* [`Checkstyle`](docs/tools/checkstyle.md)
2324
* [`PMD`](docs/tools/pmd.md)
24-
* [`FindBugs`](docs/tools/findbugs.md) [DEPRECATED] [Removed in Gradle 6.0]
2525
* [`SpotBugs`](docs/tools/spotbugs.md)
2626
* [`Detekt`](docs/tools/detekt.md)
2727
* [`Android Lint`](docs/tools/android_lint.md)
@@ -32,40 +32,43 @@ Please note that the tools availability depends on the project the plugin is app
3232

3333
### Tools in-consideration
3434
35-
* `CPD (Duplicate Code Detection) ` [#150](https://github.com/novoda/gradle-static-analysis-plugin/issues/150)
36-
* `error-prone` [#151](https://github.com/novoda/gradle-static-analysis-plugin/issues/151)
37-
* `Jetbrains IDEA Inspections` [#152](https://github.com/novoda/gradle-static-analysis-plugin/issues/152)
35+
* `CPD (Duplicate Code Detection) `
36+
* `error-prone`
37+
* `Jetbrains IDEA Inspections`
3838

39-
For all tools in consideration, please refer to [issues](https://github.com/novoda/gradle-static-analysis-plugin/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+tool%22).
39+
For all tools in consideration, please refer to [issues](https://github.com/GradleUp/gradle-static-analysis-plugin/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+tool%22).
4040

4141
### Out-of-the-box support for Android projects
4242
Android projects use a Gradle model that is not compatible with the Java one, supported by the built-in static analysis tools plugins.
4343
Applying `gradle-static-analysis-plugin` to your Android project will make sure all the necessary tasks are created and correctly configured
4444
without any additional hassle.
4545

4646
## Add the plugin to your project
47-
Apply the plugin from jCenter as a classpath dependency
47+
48+
[ ![Bintray](https://img.shields.io/bintray/v/gradleup/maven/gradle-static-analysis-plugin) ](https://bintray.com/gradleup/maven/gradle-static-analysis-plugin/_latestVersion)
49+
[ ![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/com/gradleup/static-analysis/manifest/com.gradleup.static-analysis.gradle.plugin/maven-metadata.xml.svg?label=Gradle%20Plugins%20Portal) ](https://plugins.gradle.org/plugin/com.gradleup.static-analysis)
4850

49-
```gradle
51+
Add the plugin in `build.gradle(.kts)` file
52+
53+
```kotlin
54+
plugins {
55+
id("com.gradleup.static-analysis") version "<latest-version>"
56+
}
57+
```
58+
59+
Or apply the plugin from jcenter as a classpath dependency
60+
61+
```groovy
5062
buildscript {
5163
repositories {
5264
jcenter()
5365
}
5466
dependencies {
55-
classpath 'com.novoda:gradle-static-analysis-plugin:1.2'
67+
classpath("com.gradleup:gradle-static-analysis-plugin:<latest-version>")
5668
}
5769
}
5870
59-
apply plugin: 'com.novoda.static-analysis'
60-
```
61-
62-
or from the [Gradle Plugins Repository](https://plugins.gradle.org/):
63-
64-
```gradle
65-
plugins {
66-
id 'com.novoda.static-analysis' version '1.2'
67-
}
68-
71+
apply plugin: 'com.gradleup.static-analysis'
6972
```
7073

7174
## Simple usage
@@ -79,7 +82,6 @@ staticAnalysis {
7982
}
8083
checkstyle { }
8184
pmd { }
82-
findbugs { }
8385
spotbugs { }
8486
detekt { }
8587
lintOptions { }
@@ -90,30 +92,7 @@ This will enable all the tools with their default settings and create `evaluateV
9092
[advanced usage](docs/advanced-usage.md) and to the [supported tools](docs/supported-tools.md) pages.
9193

9294
## Sample app
93-
There are two sample Android projects available, one consisting of a regular app - available [here](https://github.com/novoda/gradle-static-analysis-plugin/tree/master/sample) - and the other comprising a multi-module setup available [here](https://github.com/novoda/gradle-static-analysis-plugin/tree/master/sample-multi-module). Both sample projects showcase a setup featuring Checkstyle, FindBugs, SpotBugs, PMD, Lint, Ktlint and Detekt.
94-
95-
## Snapshots
96-
[![CI status](https://ci.novoda.com/buildStatus/icon?job=gradle-static-analysis-plugin-snapshot)](https://ci.novoda.com/job/gradle-static-analysis-plugin-snapshot/lastBuild/console) [![Download from Bintray](https://api.bintray.com/packages/novoda-oss/snapshots/gradle-static-analysis-plugin/images/download.svg)](https://bintray.com/novoda-oss/snapshots/gradle-static-analysis-plugin/_latestVersion)
97-
98-
Snapshot builds from [`develop`](https://github.com/novoda/gradle-static-analysis-plugin/compare/master...develop) are automatically deployed to a [repository](https://bintray.com/novoda-oss/snapshots/gradle-static-analysis-plugin/_latestVersion) that is not synced with JCenter.
99-
To consume a snapshot build add an additional maven repo as follows:
100-
```
101-
repositories {
102-
maven {
103-
url 'https://dl.bintray.com/novoda-oss/snapshots/'
104-
}
105-
}
106-
```
107-
108-
You can find the latest snapshot version following this [link](https://bintray.com/novoda-oss/snapshots/gradle-static-analysis-plugin/_latestVersion).
109-
110-
## Roadmap
111-
112-
This project is routinely used by many Novoda projects and by other external projects with no known critical issues.
113-
114-
Future improvements and new tool integrations can be found on the repository's
115-
[issue tracker](https://github.com/novoda/gradle-static-analysis-plugin/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement).
116-
95+
There are two sample Android projects available, one consisting of a regular app - available [here](https://github.com/GradleUp/gradle-static-analysis-plugin/tree/master/sample) - and the other comprising a multi-module setup available [here](https://github.com/GradleUp/gradle-static-analysis-plugin/tree/master/sample-multi-module). Both sample projects showcase a setup featuring Checkstyle, SpotBugs, PMD, Lint, Ktlint and Detekt.
11796

11897
## License
11998

RELEASE.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# Releasing
22

33
1. Bump version code in `publish.gradle`.
4-
1. Update examples in `README.md` to use the latest version.
54
1. Create an entry in `CHANGELOG.md` containing the changes in that release. This entry needs to follow a certain pattern which can be found in `publish.gradle`. The changelog can be verified by executing the `printChangelog` task.
6-
1. Create a pull request to `develop` containing the above mentioned changes similar to [this](https://github.com/novoda/gradle-static-analysis-plugin/pull/81) one.
7-
1. Merge `develop` into `master`.
8-
1. Execute the [build job](https://ci.novoda.com/job/gradle-static-analysis-plugin/) manually with `BINTRAY_DRY_RUN=false`.
5+
1. Create a pull request to `master` containing the above mentioned changes similar to [this](https://github.com/novoda/gradle-static-analysis-plugin/pull/81) one.
96
1. After the release is successful do a manual [github release](https://github.com/novoda/gradle-static-analysis-plugin/releases) with the newly created tag.
107

11-
This releases the plugin to [bintray](https://bintray.com/novoda-oss/maven/gradle-static-analysis-plugin) and the [Gradle Plugins Repository](https://plugins.gradle.org/plugin/com.novoda.static-analysis).
8+
This releases the plugin to [bintray](https://bintray.com/GradleUp/maven/gradle-static-analysis-plugin) and the [Gradle Plugins Repository](https://plugins.gradle.org/plugin/com.gradleup.static-analysis).

build.gradle

-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ subprojects {
55
repositories {
66
jcenter()
77
gradlePluginPortal()
8-
maven {
9-
url 'https://novoda.bintray.com/snapshots'
10-
}
118
}
129
dependencies {
13-
classpath gradlePlugins.bintrayRelease
1410
classpath gradlePlugins.buildProperties
1511
classpath gradlePlugins.gradleGit
1612
classpath gradlePlugins.gradlePublish

buildSrc/src/main/groovy/GradlePlugins.groovy

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
class GradlePlugins {
2-
final bintrayRelease = 'com.novoda:bintray-release:SNAPSHOT-6' // TODO update when stable release is out
32
final buildProperties = 'com.novoda:gradle-build-properties-plugin:0.4.1'
43
final gradleGit = 'org.ajoberstar:gradle-git:1.6.0'
54
final gradlePublish = 'com.gradle.publish:plugin-publish-plugin:0.9.9'

0 commit comments

Comments
 (0)