you check how the maven plugin is implemented and adopt it for gradle?

-mbien

On 26.01.23 17:13, Scott Palmer wrote:
I don't use Maven if I can help it.

But you misunderstand, I want to call Jackpot from my code to get it to perform some refactoring from control of my program. Getting a list of possible hints may happen later. Or perhaps a more general use... What would I do if I wanted to write a Gradle plugin to do the same as the Maven plugin? Assuming I know the Gradle side, how do I call the Jackpot methods?

Regards,

Scott


On Thu, Jan 26, 2023 at 10:50 AM Michael Bien <mbie...@gmail.com> wrote:

    On 26.01.23 16:01, Scott Palmer wrote:
    > I wanted to experiment with Jackpot for a project I'm working
    on.  How
    > dependent on the NetBeans Platform is the Jackpot code at
    > https://github.com/apache/netbeans-jackpot30 ?
    > Is there such a thing as a jackpot library jar that does not
    depend on
    > NetBeans classes?
    > If I wanted to make a standalone tool to do certain
    transformations on a
    > Java code base where would I start?
    >
    > Thanks for any help you can provide,
    >
    > Scott
    >
    you should be able to use it from maven in your build:

                 <plugin>
    <groupId>org.apache.netbeans.modules.jackpot30</groupId>
    <artifactId>jackpot30-maven-plugin</artifactId>
                     <version>13.0</version>
                     <configuration>
    <configurationFile>jackpot-settings.xml</configurationFile>
    <failOnWarnings>true</failOnWarnings>
                     </configuration>
                     <executions>
                         <execution>
                             <id>jackpot</id>
                             <phase>compile</phase>
                             <goals>
                                 <goal>analyze</goal>
                             </goals>
                         </execution>
                     </executions>
                 </plugin>


    I use it mostly from within NetBeans itself for refactoring or
    inspection tasks with the help of the ".hint" files.

    I sometimes upload the inspections which I think are reusable or more
    generic here:

    https://github.com/mbien/jackpot-inspections

    readme explains how to use hint files.

    -mbien

Reply via email to