Skip to content

Commit

Permalink
remove sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Feb 25, 2018
1 parent 866a3b8 commit 1bf62e8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java
sudo: false
install: ""
script: ./travis.sh
script: ./gradlew clean check
branches:
only:
- master
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

Plugin providing opinionated defaults for Gradle builds.

[![Bintray](https://api.bintray.com/packages/ajoberstar/maven/gradle-defaults/images/download.svg)](https://bintray.com/ajoberstar/maven/gradle-defaults/_latestVersion)
[![Download](https://api.bintray.com/packages/ajoberstar/maven/gradle-defaults/images/download.svg)](https://bintray.com/ajoberstar/maven/gradle-defaults/_latestVersion)
[![Travis](https://img.shields.io/travis/ajoberstar/gradle-defaults.svg?style=flat-square)](https://travis-ci.org/ajoberstar/gradle-defaults)
[![Quality Gate](https://sonarqube.ajoberstar.com/api/badges/gate?key=org.ajoberstar:gradle-defaults)](https://sonarqube.ajoberstar.com/dashboard/index/org.ajoberstar:gradle-defaults)
[![GitHub license](https://img.shields.io/github/license/ajoberstar/gradle-defaults.svg?style=flat-square)](https://github.com/ajoberstar/gradle-defaults/blob/master/LICENSE)

## What does it do?
Expand Down Expand Up @@ -41,8 +40,6 @@ In the root project:
- `src/gh-pages` to `/`
- `javadoc` task to `/docs/<taskpath>` from all projects
- `groovydoc` task to `/docs/<taskpath>` from all projects
- `org.sonarqube` applied
- `sonar.projectVersion` set to the targeted final version (i.e. strips off `-<whatever>` from the version)
- `org.ajoberstar.semver-vcs-grgit` applied
- `org.ajoberstar.release-experimental` applied
- `release` depends on `clean`, `build`, `gitPublishPush`, `publish`, and `publishPlugins` (when available) from all projects
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dependencies {
// 3rd party plugins
runtime 'com.gradle.publish:plugin-publish-plugin:0.9.9'
runtime 'com.diffplug.spotless:spotless-plugin-gradle:+'
runtime 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:+'
runtime 'com.netflix.nebula:gradle-dependency-lock-plugin:+'
runtime 'com.netflix.nebula:gradle-lint-plugin:+'
runtime 'com.netflix.nebula:nebula-publishing-plugin:+'
Expand Down
70 changes: 25 additions & 45 deletions global.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,23 @@
"requested": "+"
},
"org.ajoberstar.reckon:reckon-gradle": {
"locked": "0.3.0",
"locked": "0.3.2",
"requested": "+"
},
"org.ajoberstar:gradle-bintray": {
"locked": "0.1.1-rc.1",
"locked": "0.1.1",
"requested": "+"
},
"org.ajoberstar:gradle-git-publish": {
"locked": "0.3.2",
"locked": "0.3.3",
"requested": "+"
},
"org.ajoberstar:gradle-stutter": {
"locked": "0.2.0",
"locked": "0.2.1",
"requested": "+"
},
"org.ajoberstar:grgit": {
"locked": "2.1.0",
"requested": "+"
},
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin": {
"locked": "2.6.2",
"locked": "2.1.1",
"requested": "+"
}
},
Expand Down Expand Up @@ -77,27 +73,23 @@
"requested": "+"
},
"org.ajoberstar.reckon:reckon-gradle": {
"locked": "0.3.0",
"locked": "0.3.2",
"requested": "+"
},
"org.ajoberstar:gradle-bintray": {
"locked": "0.1.1-rc.1",
"locked": "0.1.1",
"requested": "+"
},
"org.ajoberstar:gradle-git-publish": {
"locked": "0.3.2",
"locked": "0.3.3",
"requested": "+"
},
"org.ajoberstar:gradle-stutter": {
"locked": "0.2.0",
"locked": "0.2.1",
"requested": "+"
},
"org.ajoberstar:grgit": {
"locked": "2.1.0",
"requested": "+"
},
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin": {
"locked": "2.6.2",
"locked": "2.1.1",
"requested": "+"
}
},
Expand All @@ -123,27 +115,23 @@
"requested": "+"
},
"org.ajoberstar.reckon:reckon-gradle": {
"locked": "0.3.0",
"locked": "0.3.2",
"requested": "+"
},
"org.ajoberstar:gradle-bintray": {
"locked": "0.1.1-rc.1",
"locked": "0.1.1",
"requested": "+"
},
"org.ajoberstar:gradle-git-publish": {
"locked": "0.3.2",
"locked": "0.3.3",
"requested": "+"
},
"org.ajoberstar:gradle-stutter": {
"locked": "0.2.0",
"locked": "0.2.1",
"requested": "+"
},
"org.ajoberstar:grgit": {
"locked": "2.1.0",
"requested": "+"
},
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin": {
"locked": "2.6.2",
"locked": "2.1.1",
"requested": "+"
}
},
Expand All @@ -169,27 +157,23 @@
"requested": "+"
},
"org.ajoberstar.reckon:reckon-gradle": {
"locked": "0.3.0",
"locked": "0.3.2",
"requested": "+"
},
"org.ajoberstar:gradle-bintray": {
"locked": "0.1.1-rc.1",
"locked": "0.1.1",
"requested": "+"
},
"org.ajoberstar:gradle-git-publish": {
"locked": "0.3.2",
"locked": "0.3.3",
"requested": "+"
},
"org.ajoberstar:gradle-stutter": {
"locked": "0.2.0",
"locked": "0.2.1",
"requested": "+"
},
"org.ajoberstar:grgit": {
"locked": "2.1.0",
"requested": "+"
},
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin": {
"locked": "2.6.2",
"locked": "2.1.1",
"requested": "+"
}
},
Expand All @@ -215,27 +199,23 @@
"requested": "+"
},
"org.ajoberstar.reckon:reckon-gradle": {
"locked": "0.3.0",
"locked": "0.3.2",
"requested": "+"
},
"org.ajoberstar:gradle-bintray": {
"locked": "0.1.1-rc.1",
"locked": "0.1.1",
"requested": "+"
},
"org.ajoberstar:gradle-git-publish": {
"locked": "0.3.2",
"locked": "0.3.3",
"requested": "+"
},
"org.ajoberstar:gradle-stutter": {
"locked": "0.2.0",
"locked": "0.2.1",
"requested": "+"
},
"org.ajoberstar:grgit": {
"locked": "2.1.0",
"requested": "+"
},
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin": {
"locked": "2.6.2",
"locked": "2.1.1",
"requested": "+"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class DefaultsPlugin implements Plugin<Project> {
throw new GradleException('org.ajoberstar.defaults must only be applied to the root project')
}
addGit(project)
addSonar(project)
addReleaseConfig(project)

project.allprojects { prj ->
Expand Down Expand Up @@ -63,15 +62,6 @@ class DefaultsPlugin implements Plugin<Project> {
}
}

private void addSonar(Project project) {
project.plugins.apply('org.sonarqube')
project.sonarqube {
properties {
property 'sonar.projectVersion', project.version.toString().split('-')[0]
}
}
}

private void addReleaseConfig(Project project) {
project.plugins.apply('org.ajoberstar.reckon')

Expand Down
23 changes: 0 additions & 23 deletions travis.sh

This file was deleted.

0 comments on commit 1bf62e8

Please sign in to comment.