Code Monkey home page Code Monkey logo

Comments (8)

kiwi-oss avatar kiwi-oss commented on August 25, 2024 1

Thanks for looking into it. Next week, I will create a minimal reproducible project and link to it.

from jandex-gradle-plugin.

kiwi-oss avatar kiwi-oss commented on August 25, 2024 1

Here's the repository to reproduce the issue. It has the same structure as the actual project, but contains only the very basic files.

Instructions to reproduce are in the readme file.

from jandex-gradle-plugin.

kdubb avatar kdubb commented on August 25, 2024

It's a Quarkus 2.15 project using Gradle 7.5.1

from jandex-gradle-plugin.

kdubb avatar kdubb commented on August 25, 2024

I just realized this is only in a single module of a multi-module project. The projects has 8 modules 2 of which apply Jandex. If I remove it from the module that generates the error and leave it in the other module the build still works fine.

from jandex-gradle-plugin.

kiwi-oss avatar kiwi-oss commented on August 25, 2024

We get the exactly same error when trying to upgrade from 1.0.0 to 1.1.0.

We're using Quarkus 2.16.5 and Gradle 8.0.2.

from jandex-gradle-plugin.

aalmiray avatar aalmiray commented on August 25, 2024

Cannot replicate with Quarkus 2.16.5, Gradle 8.0.2.

These are the classes created by the plugin

$ tree build/classes/
build/classes/
└── groovy
    └── main
        └── org
            └── kordamp
                └── gradle
                    └── plugin
                        └── jandex
                            ├── Banner$Params.class
                            ├── Banner.class
                            ├── JandexExtension.class
                            ├── JandexPlugin$1.class
                            ├── JandexPlugin$2.class
                            ├── JandexPlugin$3.class
                            ├── JandexPlugin$4.class
                            ├── JandexPlugin$5.class
                            ├── JandexPlugin$_apply_closure1.class
                            ├── JandexPlugin.class
                            ├── internal
                            │   ├── DefaultVersions.class
                            │   └── JandexExtensionImpl.class
                            └── tasks
                                ├── JandexTask$1.class
                                ├── JandexTask$2.class
                                ├── JandexTask$3.class
                                ├── JandexTask.class
                                ├── JandexWorkAction$ClassFileVisitor.class
                                ├── JandexWorkAction.class
                                └── JandexWorkParameters.class

I don't see a org.kordamp.gradle.plugin.jandex.Banner$Inject class. It might be coming from some internal Gradle plumbing.

from jandex-gradle-plugin.

aalmiray avatar aalmiray commented on August 25, 2024

Do you have a reproducible repository you may link to?

from jandex-gradle-plugin.

briancullen avatar briancullen commented on August 25, 2024

I know this is an old issue but I had a similar problem, which is how I can across this. Eventually I found putting the following at the top of the root build.gradle.kts (I'm using kotlin instead of groovy) sorted it out. For groovy I think the only change you need to make is remove the second line where we define the value.

I currently don't know why this solved my problem and it is possible that is is something to do with my setup. I have not tried it with the reproducer but it might be worth trying if you are stuck. For reference this was not necessary if I was using version 1.0.0 of the jandex plugin, this is using gradle 8.6 and quarkus 3.8.2.

buildscript {
    val quarkusPluginVersion: String by project
    repositories {
        gradlePluginPortal()
    }

    dependencies {
        classpath("io.quarkus:io.quarkus.gradle.plugin:$quarkusPluginVersion")
    }
}

from jandex-gradle-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.