Comments (3)
I'd suggest using an afterEvaluate
block, checking for the existence of the given tasks by name and connect them if they are found, similarly as it's done here https://github.com/jreleaser/jreleaser/blob/3ccb2e4fcb0ab9510f8171eae1e20893d7dd0f97/plugins/jreleaser-tool-provider/jreleaser-tool-provider.gradle#L129
from jandex-gradle-plugin.
I'd suggest using an
afterEvaluate
block...
That seems to have resolved the issue.
afterEvaluate {
var taskJandex = tasks.named("jandex")
var taskPluginUnderTestMetadata = tasks.named("pluginUnderTestMetadata")
if (taskJandex.isPresent && taskPluginUnderTestMetadata.isPresent) {
taskPluginUnderTestMetadata.get().dependsOn(taskJandex)
} else {
println("One or both jandex related tasks are not present. Task pluginUnderTestMetadata.dependsOn(jandex).")
println("Task jandex: $taskJandex")
println("Task pluginUnderTestMetadata: $taskPluginUnderTestMetadata")
}
}
Many thanks!
from jandex-gradle-plugin.
🎉 This issue has been resolved in v2.0.0 (Release Notes)
from jandex-gradle-plugin.
Related Issues (20)
- 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
- 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
- Jandex 3.0 HOT 4
- Configurable persistent index format version
- Jandex issue when upgrate to 1.0.0 HOT 4
- Task "jandex" up-to-date check passes as long as the jandex.idx exists (and will not rebuild for new source) HOT 3
- Upgrading to 1.1.0 causes build to fail HOT 8
- Add support to gradle configuration cache HOT 2
- [Bug]: Error during building - jandex-gradle-plugin HOT 4
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.