forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into assume-old-cluster-features
- Loading branch information
Showing
1,966 changed files
with
45,470 additions
and
11,604 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
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
22 changes: 22 additions & 0 deletions
22
.../src/main/java/org/elasticsearch/gradle/internal/conventions/info/GitInfoValueSource.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.elasticsearch.gradle.internal.conventions.info; | ||
|
||
import org.gradle.api.provider.Property; | ||
import org.gradle.api.provider.ValueSource; | ||
import org.gradle.api.provider.ValueSourceParameters; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.io.File; | ||
|
||
public abstract class GitInfoValueSource implements ValueSource<GitInfo, GitInfoValueSource.Parameters> { | ||
|
||
@Nullable | ||
@Override | ||
public GitInfo obtain() { | ||
File path = getParameters().getPath().get(); | ||
return GitInfo.gitInfo(path); | ||
} | ||
|
||
public interface Parameters extends ValueSourceParameters { | ||
Property<File> getPath(); | ||
} | ||
} |
Oops, something went wrong.