Comments (3)
I have just tested this with a simple reproducer:
plugins {
id "com.iadams.sonar-packaging" version "0.1.4"
}
repositories {
mavenCentral()
}
dependencies {
provided 'org.sonarsource.sonarqube:sonar-plugin-api:5.6'
}
version = '1.0'
sonarPackaging {
pluginDir = "$buildDir/myServer"
pluginKey = 'example'
pluginClass = 'org.sonar.plugins.sample.SamplePlugin'
pluginName = 'Example'
pluginDescription = 'An Example Plugin!'
}
gradle clean build
:clean
:compileJava
Note: /Users/iwarapter/IdeaProjects/gradle-sonar-packaging-plugin-tests/src/main/java/org/sonar/plugins/sample/SamplePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:processResources UP-TO-DATE
:classes
:jar
:pluginPackaging
Checking for sonar-plugin-api
-------------------------------------------------------
Plugin definition in update center
-------------------------------------------------------
Sonar Plugin Created.
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 3.405 secs
Can you provide me with your build file - any more information to help me reproduce?
from gradle-sonar-packaging-plugin.
Hi, I used the following in my build.gradle
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.iadams.plugins:gradle-sonar-packaging-plugin:0.1.4"
}
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply plugin: 'com.iadams.sonar-packaging'
dependencies {
compile 'org.sonarsource.sonarqube:sonar-plugin-api:5.6'
}
But, after changing the dependencies
section after reading your reply, it seems to correct the issue
dependencies {
provided 'org.sonarsource.sonarqube:sonar-plugin-api:5.6'
}
from gradle-sonar-packaging-plugin.
Yes its a provided dependency not compile time.
from gradle-sonar-packaging-plugin.
Related Issues (20)
- Package dependencies better
- Plugin packaging: nearly there, except Sonar does not accept it... HOT 15
- Change packaging finalizedBy dependency
- Build goes into endless loop and craches HOT 10
- org.codehaus.sonar:sonar-plugin-api or org.sonarsource.sonarqube:sonar-plugin-api should be declared in dependencies HOT 1
- xstream not added to the output plugin jar HOT 15
- The plugin fails with Gradle 2.11 HOT 1
- Refactor out internal api calls HOT 1
- localDeploy does not work
- 0.1.4: the plugin fails to account for gradle 2.12's new (and longly awaited) compileOnly HOT 12
- LoggingManager.setLevel(LogLevel) has been deprecated HOT 1
- `pluginPackaging` failed in gradle multiproject HOT 5
- Support `sonarQubeMinVersion` property HOT 2
- Deprecation warning with gradle 3.5 / support for gradle 4.0 HOT 11
- org.sonarsource.sonarqube:sonar-plugin-api should be declared in dependencies problem HOT 8
- Plugin class not found after just updating kotlin dependencies HOT 4
- Plugin not compatible with Gradle 5.0 HOT 5
- `implementation` dependencies not resolved
- Could not get unknown property 'compile' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-sonar-packaging-plugin.