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.

Troubles with Jabel 0.3.0

See original GitHub issue

Hi! 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:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexRomanchcommented, Oct 26, 2020

@bsideup it work. Thank you so much! I think it wiil be useful to add information about testAnnotationProcessor to readme.

1reaction
bsideupcommented, Oct 22, 2020

@AlexRomanch since tasks.withType(JavaCompile).all is used, you need to also add Jabel to testAnnotationProcessor - unfortunately, Gradle does not inherit it automatically.

And yes, Jabel should work perfectly fine with any Java project, Spring Boot included.

Read more comments on GitHub >

github_iconTop 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 >

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