-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle build failing - Lombok & tests #78
Comments
chrisaddams
changed the title
Gradle build failing
Gradle build failing - Lombok & tests
Aug 10, 2022
Made it compile with more recent JDK using this diff: diff --git a/build.gradle b/build.gradle
index ab06c53..5b60204 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,6 @@
plugins {
id 'java-library'
- id "io.freefair.lombok" version "5.3.0"
+ id "io.freefair.lombok" version "6.4.0"
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'maven-publish'
id 'signing'
diff --git a/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationResponse.java b/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationResponse.java
index e60eb83..fc35c16 100644
--- a/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationResponse.java
+++ b/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationResponse.java
@@ -25,7 +25,7 @@ import lombok.ToString;
/**
* This class is used to model the authentication response sent by the broker.
*/
-@Getter(onMethod = @__(@JsonIgnore))
+@Getter(onMethod_ = {@JsonIgnore})
@ToString
public class AuthenticationResponse {
private static final String VERSION_1 = "2020_10_22"; But still got test failures:
|
For anyone facing a similar issue with test as noted by strokyl, this is likely related to gradle version requiring compatible I am able to build and test latest main branch using following versions :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm hitting an issue when cloning the repo and running either
gradle clean build
orgradle clean shadowJar
.The output I'm getting is as follows:
This is running using Java:17, and Gradle 7.3
I am able to get passed this stage by upgrading Lombok in
build.gradle
toid "io.freefair.lombok" version "6.5.0.3"
However, then I hit another error when running
gradle clean build
Whereas
gradle clean shadowJar
now outputs a successful buildThe text was updated successfully, but these errors were encountered: