-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'Vampire/issue-381' into updates
- Loading branch information
Showing
5 changed files
with
18 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
grgit-gradle/src/main/java/org/ajoberstar/grgit/gradle/GrgitServiceExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
package org.ajoberstar.grgit.gradle; | ||
|
||
import javax.inject.Inject; | ||
|
||
import org.gradle.api.model.ObjectFactory; | ||
import org.gradle.api.provider.Property; | ||
import org.gradle.api.provider.Provider; | ||
|
||
public class GrgitServiceExtension { | ||
private Property<GrgitService> service; | ||
private final Provider<GrgitService> service; | ||
|
||
@Inject | ||
public GrgitServiceExtension(ObjectFactory objectFactory) { | ||
this.service = objectFactory.property(GrgitService.class); | ||
public GrgitServiceExtension(Provider<GrgitService> service) { | ||
this.service = service; | ||
} | ||
|
||
public Property<GrgitService> getService() { | ||
public Provider<GrgitService> getService() { | ||
return service; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters