question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"plug-in not found" using dependency "manifold" instead of "manifold-all"

See original GitHub issue

Oracle JDK 8 (1.8.0_131) and Gradle 4.10.3:

tasks.withType(JavaCompile) {
    options.compilerArgs += '-Xplugin:Manifold'
    options.fork = true
}

dependencies {
    compileOnly libraries.lombok

    compile group: 'systems.manifold', name: 'manifold', version: '0.45-alpha'
    compile group: 'systems.manifold', name: 'manifold-properties', version: '0.45-alpha'
    compile files("\${System.getProperty('java.home')}/../lib/tools.jar")
}

When the tasks compileJava or compileTestJava are executed the following message is logged: plug-in not found: Manifold

This message is not logged if manifold-all.jar is used as dependency.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wilmerkrispcommented, May 24, 2019

please notice error in compileTestJava you need add

implementation ‘systems.manifold:manifold-all:0.71-alpha’ annotationProcessor ‘systems.manifold:manifold-all:0.71-alpha’ testImplementation ‘systems.manifold:manifold-all:0.71-alpha’ testAnnotationProcessor ‘systems.manifold:manifold-all:0.71-alpha’

Itis solved my problem

0reactions
dalegaspicommented, Apr 25, 2021

per @wilmerkrisp the last two entries testImplementation and/or testAnnotationProcessor is important if you need to use the Manifold plugins in unit tests. for example, for string interpolation you need to add:

 testAnnotationProcessor 'systems.manifold:manifold-strings:2021.1.11'

the documentation needs to be updated with this information. 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

News - Manifold
Manifold now provides a fully integrated Java Preprocessor. The Java Preprocessor is designed exclusively for conditional compilation of Java ...
Read more >
How to specify Javac plugin argument with maven-compiler ...
I'm using the Manifold plugin. Reproducing is simple.. create a pom with a dependency on the manifold-all jar (and tools.jar if using Java...
Read more >
systems.manifold.manifold-gradle-plugin
Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, a Preprocessor, ...
Read more >
Spring Boot Gradle Plugin Reference Guide
Managing Dependencies with the Dependency Management Plugin ... Instead, you must use one of the mechanisms that Gradle provides.
Read more >
Gradle dependencies | IntelliJ IDEA Documentation - JetBrains
Required plugins for working with diagrams: Diagrams and Gradle Extension. Both plugins are bundled and enabled by default.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found