Code Monkey home page Code Monkey logo

Comments (5)

iwarapter avatar iwarapter commented on June 22, 2024

In my plugin i setup the dependency on the plugin in the actual module using it - see https://github.com/iwarapter/sonar-puppet/blob/master/sonar-puppet-plugin/build.gradle

I'm assuming your setup is like this:

root
| - module A
| - module B 
| - sonar-example-plugin 

In which case i would of thought the section in the root build.gradle :

project (":sonar-example-plugin"){
    apply plugin: 'com.iadams.sonar-packaging'

Would of worked as expected, i'll setup some tests for this when I get back from work.

from gradle-sonar-packaging-plugin.

iwarapter avatar iwarapter commented on June 22, 2024

This works fine for me can you just confirm you have a class here:
cat sonar-example-plugin/src/main/java/org/sonarsource/plugins/example/ExamplePlugin.java

package org.sonarsource.plugins.example;

import java.util.Arrays;
import java.util.List;

import org.sonar.api.SonarPlugin;

public class ExamplePlugin extends SonarPlugin {

  @Override
  public List getExtensions() {
    return Arrays.asList();
  }
}

from gradle-sonar-packaging-plugin.

goprayogo avatar goprayogo commented on June 22, 2024

Hi, I think this issue can be closed.

The issue is solved by adding the following statement in the build.gradle of the sub-module.

pluginPackaging.dependsOn 'compileJava'

Full sample project can be viewed here

from gradle-sonar-packaging-plugin.

otrosien avatar otrosien commented on June 22, 2024

well, if there's such a dependency the plugin should register it by itself...

from gradle-sonar-packaging-plugin.

iwarapter avatar iwarapter commented on June 22, 2024

@otrosien @goprayogo you don't need to add that as its done automatically.

There is an example project here: https://github.com/iwarapter/gradle-sonar-packaging-plugin-issue-16

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.