Skip to content

Commit

Permalink
reverted to last working build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyang committed Jan 21, 2025
1 parent a146612 commit edd6047
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 299 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ jobs:
changelog: ${{ steps.properties.outputs.changelog }}
steps:

# Clear Gradle cache
- name: Clear Gradle Cache
run: rm -rf ~/.gradle/caches ~/.gradle/wrapper ~/.gradle/native

# Setup fresh Gradle
- name: Set Up Fresh Gradle User Home
run: ./gradlew clean --refresh-dependencies

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
Expand All @@ -56,12 +48,12 @@ jobs:
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1.0.4

# Setup Java 17 environment for the next steps
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
java-version: 11

# Set environment variables
- name: Export Properties
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
with:
ref: ${{ github.event.release.tag_name }}

# Setup Java 17 environment for the next steps
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
java-version: 11

# Set environment variables
- name: Export Properties
Expand Down
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

## [Unreleased]

## [2.0.16]
## [2.0.15]

### Changed


- Spring 2025 style checker
- Fall 2024 style checker
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
// Java support
id("java")
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.15.0"
id("org.jetbrains.intellij") version "1.8.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"
// Gradle Qodana Plugin
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
pluginGroup = edu.berkeley.cs61b.plugin
pluginName = CS 61B
# SemVer format -> https://semver.org
pluginVersion = 2.0.16
pluginVersion = 2.0.15

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 241
pluginSinceBuild = 213

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension
platformType = IC
platformVersion = 2024.1.7
platformVersion = 2022.2.1

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Expand Down
34 changes: 13 additions & 21 deletions src/main/java/edu/berkeley/cs61b/plugin/CheckStyleAction.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
package edu.berkeley.cs61b.plugin;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import org.jetbrains.annotations.NotNull;
import org.xml.sax.InputSource;

import com.intellij.execution.filters.OpenFileHyperlinkInfo;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
Expand All @@ -36,6 +20,19 @@
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
import com.puppycrawl.tools.checkstyle.api.AuditListener;
import com.puppycrawl.tools.checkstyle.api.Configuration;
import org.xml.sax.InputSource;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class CheckStyleAction extends AnAction {
private static final String CONFIG_ROOT = "style_config/";
Expand Down Expand Up @@ -87,11 +84,6 @@ public void actionPerformed(AnActionEvent event) {
}
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}

private void collectFiles(VirtualFile[] parent, List<File> list) {
LinkedList<VirtualFile> sources = new LinkedList<>();
Collections.addAll(sources, parent);
Expand Down
9 changes: 1 addition & 8 deletions src/main/java/edu/berkeley/cs61b/plugin/SettingsAction.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package edu.berkeley.cs61b.plugin;

import org.jetbrains.annotations.NotNull;

import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.DialogWrapper;
import org.jetbrains.annotations.NotNull;

public class SettingsAction extends AnAction {
@Override
Expand All @@ -21,9 +19,4 @@ public void actionPerformed(@NotNull AnActionEvent e) {
props.setValue(PluginUtils.KEY_SEMESTER, form.getSemesterField().getText());
}
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}
}
Loading

0 comments on commit edd6047

Please sign in to comment.