Java Code Examples for org.gradle.util.GradleVersion#getVersion()
The following examples show how to use
org.gradle.util.GradleVersion#getVersion() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionAwareConsumerConnection.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
protected static VersionDetails getVersionDetails(String versionString) { GradleVersion version = GradleVersion.version(versionString); if (version.compareTo(GradleVersion.version("1.11")) > 0) { return new R112VersionDetails(version.getVersion()); } return new R18VersionDetails(version.getVersion()); }
Example 2
Source File: DefaultGradleBuildInvocationSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void setGradleVersion(String gradleVersion) { if (gradleVersion == null) { throw new IllegalArgumentException("gradleVersion cannot be null"); } GradleVersion version = GradleVersion.version(gradleVersion); this.gradleVersion = version.getVersion(); }
Example 3
Source File: ModelBuilderBackedConsumerConnection.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public static VersionDetails getVersionDetails(String versionString) { GradleVersion version = GradleVersion.version(versionString); if (version.compareTo(GradleVersion.version("1.11")) > 0) { return new R112VersionDetails(version.getVersion()); } if (version.compareTo(GradleVersion.version("1.8-rc-1")) >= 0) { return new R18VersionDetails(version.getVersion()); } return new R16VersionDetails(version.getVersion()); }
Example 4
Source File: DefaultGradleBuildInvocationSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void setGradleVersion(String gradleVersion) { if (gradleVersion == null) { throw new IllegalArgumentException("gradleVersion cannot be null"); } GradleVersion version = GradleVersion.version(gradleVersion); this.gradleVersion = version.getVersion(); }
Example 5
Source File: ActionAwareConsumerConnection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
protected static VersionDetails getVersionDetails(String versionString) { GradleVersion version = GradleVersion.version(versionString); if (version.compareTo(GradleVersion.version("1.11")) > 0) { return new R112VersionDetails(version.getVersion()); } return new R18VersionDetails(version.getVersion()); }
Example 6
Source File: DefaultGradleBuildInvocationSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void setGradleVersion(String gradleVersion) { if (gradleVersion == null) { throw new IllegalArgumentException("gradleVersion cannot be null"); } GradleVersion version = GradleVersion.version(gradleVersion); this.gradleVersion = version.getVersion(); }
Example 7
Source File: ModelBuilderBackedConsumerConnection.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public static VersionDetails getVersionDetails(String versionString) { GradleVersion version = GradleVersion.version(versionString); if (version.compareTo(GradleVersion.version("1.11")) > 0) { return new R112VersionDetails(version.getVersion()); } if (version.compareTo(GradleVersion.version("1.8-rc-1")) >= 0) { return new R18VersionDetails(version.getVersion()); } return new R16VersionDetails(version.getVersion()); }
Example 8
Source File: DefaultGradleBuildInvocationSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void setGradleVersion(String gradleVersion) { if (gradleVersion == null) { throw new IllegalArgumentException("gradleVersion cannot be null"); } GradleVersion version = GradleVersion.version(gradleVersion); this.gradleVersion = version.getVersion(); }