Skip to content

Commit

Permalink
Require frcYear in vendor deps (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored Sep 28, 2023
1 parent ec71b04 commit 241e0f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ targetCompatibility = 11

allprojects {
group = "edu.wpi.first"
version = "2024.2.0"
version = "2024.3.0"

if (project.hasProperty('publishVersion')) {
version = project.publishVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import org.gradle.api.NamedDomainObjectSet;
import org.gradle.api.Project;
import org.gradle.api.file.DirectoryProperty;
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.Logging;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.provider.Property;
Expand Down Expand Up @@ -134,14 +132,10 @@ public void loadAll() {
}

public void validateDependencies() {
Logger logger = Logging.getLogger(WPIVendorDepsExtension.class);
String requiredFrcYear = frcYear.getOrNull();
for (NamedJsonDependency jsonDep : dependencySet) {
if (requiredFrcYear != null) {
if (jsonDep.dependency.frcYear == null || jsonDep.dependency.frcYear.isBlank()) {
logger.warn("Vendor Dependency %s is missing frcYear. In future years this will be an error",
jsonDep.dependency.name);
} else if (!requiredFrcYear.equals(jsonDep.dependency.frcYear)) {
if (!requiredFrcYear.equals(jsonDep.dependency.frcYear)) {
throw new InvalidVendorDepYearException(jsonDep.dependency, requiredFrcYear);
}
}
Expand Down
2 changes: 1 addition & 1 deletion testing/cpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import edu.wpi.first.toolchain.NativePlatforms

plugins {
id "cpp"
id "edu.wpi.first.NativeUtils" version "2024.2.0"
id "edu.wpi.first.NativeUtils" version "2024.3.0"
}

nativeUtils.addWpiNativeUtils()
Expand Down

0 comments on commit 241e0f0

Please sign in to comment.