Code Monkey home page Code Monkey logo

Comments (3)

iwarapter avatar iwarapter commented on July 2, 2024

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.

goprayogo avatar goprayogo commented on July 2, 2024

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.

iwarapter avatar iwarapter commented on July 2, 2024

Yes its a provided dependency not compile time.

from gradle-sonar-packaging-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.