Comments (3)
(Reproducer added)
from jandex-gradle-plugin.
The reproducer is really helpful. 👍 .
When I run it:
./gradlew build --console=PLAIN
first run:
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Jandex Gradle plugin 1.0.0. Consider becoming a patron at https://www.patreon.com/aalmiray
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check UP-TO-DATE
> Task :jandex
> Task :jar
> Task :assemble
> Task :printMethods
void <init>()
void sayHi()
> Task :build
BUILD SUCCESSFUL in 14s
4 actionable tasks: 4 executed
git checkout hello
and second run ./gradlew build --console=PLAIN
:
> Configure project :
Jandex Gradle plugin 1.0.0. Consider becoming a patron at https://www.patreon.com/aalmiray
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes
> Task :jandex UP-TO-DATE
> Task :jar
> Task :assemble
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check UP-TO-DATE
> Task :printMethods
void <init>()
void sayHi()
> Task :build
BUILD SUCCESSFUL in 729ms
The Task :jandex UP-TO-DATE
is wrong in the second run.
I am not an expert, but I think that the problem is that when resolvedProcessDefaultFileSet
is true (which is the default), the folder build/classes/java/main
is not treated as being part of the input, because resolveSources()
is called too late (configuration is already done and the folder is not part of the input):
My current work-around is to add the folder as additional input for the jandex task:
tasks.named('jandex') {
inputs.files(sourceSets.findByName('main').output.classesDirs*.absolutePath.flatten())
.withPropertyName('sourceFiles')
.withPathSensitivity(PathSensitivity.RELATIVE)
}
from jandex-gradle-plugin.
Related Issues (20)
- Use logger.info instead of println HOT 2
- Jcenter dependency issue with maven-model-builder/3.6.3 HOT 2
- gradle 7 HOT 8
- Cannot resolve external dependency org.jboss:jandex:2.2.2.Final because no repositories are defined HOT 3
- java.lang.NoClassDefFoundError: org/gradle/internal/classpath/Instrumented HOT 15
- ClassInfo.annotationsMap() not compatible with older versions of Jandex
- Provide a way to configure jandex version
- Jandex 3.0 HOT 4
- Configurable persistent index format version
- Jandex issue when upgrate to 1.0.0 HOT 4
- Upgrading to 1.1.0 causes build to fail HOT 8
- Add support to gradle configuration cache HOT 2
- Add file path to the exception message
- Avoid adding index file to the resources by default HOT 10
- Add jandex task per sourceset HOT 1
- What do you think of Kotlin for the plugin implementation? HOT 2
- MissingPropertyException: Could not set unknown property 'sources' for task ':jandex' of type org.kordamp.gradle.plugin.jandex.tasks.JandexTask HOT 5
- Please document how to use fileSets HOT 2
- Gradle 7 makes optimizations disabled HOT 5
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 jandex-gradle-plugin.