forked from etiennestuder/gradle-rocker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract common code and suppress deprecations very specifically
- Loading branch information
1 parent
7f5e2cc
commit be1c25c
Showing
4 changed files
with
46 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package nu.studer.gradle.rocker; | ||
|
||
import org.gradle.util.GradleVersion; | ||
|
||
final class GradleUtils { | ||
|
||
static boolean isAtLeastGradleVersion(String version) { | ||
return GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version(version)) >= 0; | ||
} | ||
|
||
private GradleUtils() { | ||
} | ||
|
||
} |
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