Skip to content

Commit bb444eb

Browse files
committed
Make entry point serializable to make them compatible with Gradle.
1 parent 0e49cc3 commit bb444eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/build/EntryPoint.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525
import net.bytebuddy.dynamic.scaffold.inline.MethodNameTransformer;
2626
import net.bytebuddy.implementation.Implementation;
2727

28+
import java.io.Serializable;
29+
2830
import static net.bytebuddy.matcher.ElementMatchers.isDeclaredBy;
2931
import static net.bytebuddy.matcher.ElementMatchers.not;
3032

3133
/**
3234
* An entry point for a build tool which is responsible for the transformation's configuration.
3335
*/
34-
public interface EntryPoint {
36+
public interface EntryPoint extends Serializable {
3537

3638
/**
3739
* Returns the Byte Buddy instance to use.
@@ -159,6 +161,11 @@ public DynamicType.Builder<?> transform(TypeDescription typeDescription,
159161
@HashCodeAndEqualsPlugin.Enhance
160162
class Unvalidated implements EntryPoint {
161163

164+
/**
165+
* The serial version UID.
166+
*/
167+
private static final long serialVersionUID = 1L;
168+
162169
/**
163170
* The entry point to use.
164171
*/

0 commit comments

Comments
 (0)