
org.gradle.play.integtest.fixtures.PlayCoverage.groovy Maven / Gradle / Ivy
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.play.integtest.fixtures
import org.gradle.play.internal.DefaultPlayPlatform
import org.gradle.util.VersionNumber
class PlayCoverage {
static final List ALL_VERSIONS = ["2.2.1", "2.2.6", "2.3.1", "2.4.8", "2.5.4", DefaultPlayPlatform.DEFAULT_PLAY_VERSION].collect { VersionNumber.parse(it) }
static final List PLAY23_OR_EARLIER = ALL_VERSIONS.findAll { it.major <= 2 && it.minor <= 3 }.asImmutable()
static final List PLAY23_OR_LATER = ALL_VERSIONS.findAll { it.major >= 2 && it.minor >= 3 }.asImmutable()
static final List PLAY24_OR_LATER = ALL_VERSIONS.findAll { it.major >= 2 && it.minor >= 4 }.asImmutable()
static final List PLAY25_OR_LATER = ALL_VERSIONS.findAll { it.major >= 2 && it.minor >= 5 }.asImmutable()
static final List PLAY23 = ALL_VERSIONS.findAll { it.major == 2 && it.minor == 3 }.asImmutable()
static final List ALL = ALL_VERSIONS.asImmutable()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy