Comments (8)
It's in v0.2 already actually (https://github.com/tbroyer/gradle-nullaway-plugin/blob/v0.2/src/main/kotlin/net/ltgt/gradle/nullaway/NullAwayOptions.kt#L33), though it looks like I forgot to document it in the README.
from gradle-nullaway-plugin.
Fixed in 1babda7
Note that, looking back at the code, I'll soon rename the is
-prefixed properties:
isAssertsEnabled
andisExhaustiveOverride
will lose theiris
prefix in the Groovy DSL (but still have it with the Kotlin DSL)isSuppressSuggestions
will be renamed tosuppressSuggestions
(both Groovy DSL and Kotlin DSL).
So if you use isAssertsEnabled
with the Groovy DSL in v0.2, be prepared for a breaking change in the upcoming v0.3.
from gradle-nullaway-plugin.
Yep I was super lazy and only checked the README (and am using Groovy so didn't get autocomplete). Thanks!
from gradle-nullaway-plugin.
Hmm can't seem to make this work in the Groovy DSL with 0.2 actually. Tried isAssertsEnabled = true
, isAssertsEnabled = Boolean.TRUE
, isAssertsEnabled.set(true)
, and assertsEnabled = true
. Everything throws unknown property exception.
from gradle-nullaway-plugin.
😭
Will have to add a proper test using the Groovy DSL then, like I did in the errorprone plugin (tbroyer/gradle-errorprone-plugin@39e8350)
from gradle-nullaway-plugin.
With 0.2, that should work with isAssertsEnabled().set(true)
from gradle-nullaway-plugin.
Yep, that works. Thanks!
JakeWharton/dagger-reflect#123
from gradle-nullaway-plugin.
Fwiw, I just released v0.3 with the breaking changes.
from gradle-nullaway-plugin.
Related Issues (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 gradle-nullaway-plugin.