Skip to content

Commit

Permalink
fix: Inject
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-siebert committed Dec 31, 2024
1 parent fc18405 commit 8675d2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.gradle.jvm.toolchain.JavaLanguageVersion;
import studio.o7.remora.extensions.framework.FrameworkExtension;

import javax.inject.Inject;

@Getter
@Setter
public class RemoraExtension {
Expand All @@ -20,6 +22,7 @@ public class RemoraExtension {

private FrameworkExtension framework;

@Inject
public RemoraExtension(ObjectFactory factory) {
this.framework = factory.newInstance(FrameworkExtension.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
import lombok.Setter;
import org.gradle.api.model.ObjectFactory;

import javax.inject.Inject;

@Getter
@Setter
public class FrameworkExtension {
private LombokExtension lombok;

@Inject
public FrameworkExtension(ObjectFactory factory) {
lombok = factory.newInstance(LombokExtension.class);
}
Expand Down

0 comments on commit 8675d2c

Please sign in to comment.