Troubles with Jabel 0.3.0
See original GitHub issueHi! trying to use Jabel 0.3.0 with gradle settings:
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile).all {
options.compilerArgs = [
"--release", "8", // Avoid using Java 9+ APIs
"--enable-preview",
]
doFirst {
options.compilerArgs = options.compilerArgs.findAll {
it != "--enable-preview"
}
}
}
dependencies {
annotationProcessor "com.github.bsideup.jabel:jabel-javac-plugin:0.3.0"
}
and i get an error on compileJava (on var usage).
But when i downgrade jabel version to 0.2.0 i see
Jabel: initialized. Enabled features:
- DIAMOND_WITH_ANONYMOUS_CLASS_CREATION
- PRIVATE_SAFE_VARARGS
- EFFECTIVELY_FINAL_VARIABLES_IN_TRY_WITH_RESOURCES
- LOCAL_VARIABLE_TYPE_INFERENCE
and it work correct.
What can be wrong with settings for 0.3.0? Please advise.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Doesn't work on Java 16 · Issue #58 · bsideup/jabel - GitHub
Caused by: java.lang.IllegalAccessError: class com.github.bsideup.jabel.JabelCompilerPlugin (in unnamed module @0x7f3097e8) cannot access ...
Read more >Support Java 16 with Jabel · 49470aebee - SnowyGUI ...
Support Java 16 with Jabel · Show all changes · Ignore whitespace when comparing lines · Ignore changes in amount of whitespace ·...
Read more >Manik Magar (@manikmagar@fosstodon.org) - Twitter
I saw issues with other dependencies when shading. ... Dec 5. git-versioner-maven-plugin 0.3.0 has been released! ... ICYMI - jabel-javac-plugin by.
Read more >Analysis of Groundwater Quality in Jabal Sarage and Charikar ...
The main objective of this research is to find out natural causes of drinking water contaminations (toxic elements and components), that are ...
Read more >Effects of Seasonal Variation on Fish Catching in Jebel Aulia ...
8, Issue 2) ... Keywords: Jebel Aulia Dam; Reservoir; Seasons; Fish species; Investigation production; Variation ... Sandon E (1953) Problems of fisheries.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bsideup it work. Thank you so much! I think it wiil be useful to add information about
testAnnotationProcessor
to readme.@AlexRomanch since
tasks.withType(JavaCompile).all
is used, you need to also add Jabel totestAnnotationProcessor
- unfortunately, Gradle does not inherit it automatically.And yes, Jabel should work perfectly fine with any Java project, Spring Boot included.