Comments (5)
1.72 should show up in mavencentral at any moment, you can then test again :)
from kluent.
I've set the target version to 1.8, because according to Google that's what Android should support on an API level.
Can you check if v1.71 of Kluent fixes this for you? I've had to rewrite/migrate some of the publishing stuff because the old maven plugin for publications was deprecated. I guess some things changed in between, as the .module
files are completely new to me.
Maybe I've implicitly built against Java 11 in the past, but I'm pretty sure that would have broke Android users, at least at that time.
from kluent.
Unfortunately that doesn't do it.
I created a small reproducer. It runs the same simple test (asserting "".shouldBeEmpty()
and "x".shouldNotBeEmpty()
- both expected to pass) once with jdk17 and once with jdk11.
Interestigly shouldNotBeEmpty()
passes in both scenarios. However, shouldBeEmpty()
fails on JDK 11 but passes on JDK 17.
You can verify this in the action tab.
from kluent.
Thank you for the repro!
I've fiddled a bit with the build scripts and still can't figure out where the issues is. The assertions you're having the issue with is over a year old, so I must have messed something up in the gradle project.
I'll investigate further :)
from kluent.
The conclusion is, that how the current build project is set up, that the JVM specific APIs to compile against are just picked up from JAVA_HOME (the JVM Gradle is started with), instead of the different ways to specify the target version.
Using jvmToolchain
is currently not possible, as that would need an update to the kotlin gradle plugin, which would mean that some things the build currently does break.
With #223 that should be no issue in the future anymore.
The workaround from #224 is to remind to start the build with Java 8 when publishing artifacts.
from kluent.
Related Issues (20)
- Publish to Maven Central or other repositories HOT 12
- Cannot use Kluent's mockito-kotlin wrapper since 1.65 HOT 4
- Add new `shouldContainLineWithString` assertion HOT 7
- Improve errors HOT 5
- Semantic versioning to allow +notation on library updates HOT 1
- any() doesn't work in 1.65 HOT 1
- All assertions should support assertSoftly HOT 5
- Support diffs in Intellij HOT 4
- Was VerifyNotCalled removed? HOT 1
- Consistent file and code formatting HOT 7
- Vulnerabilities in junit dependency HOT 1
- changed inheritance from AssertionError caused assertion not working with awaitility HOT 1
- Project maintenance HOT 2
- ``should throw`` for suspended callables missing HOT 1
- Potentially misleading behavior of shoudNotThrow
- kluent-1.69 is configured for jvm version 17 HOT 3
- Use the newest Multiplatform project structure
- IllegalStateException is thrown when shouldBeEquivalentTo comparison fails
- Android Studio Iguana doesn't show "Show diff" when assert fails HOT 1
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 kluent.