Skip to content

Commit

Permalink
Prepare test release to verify dist channels
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiell committed Aug 24, 2024
1 parent 996ce42 commit 2f2c9ab
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# CheckStyle-IDEA Changelog

* **5.93.2** WiP: test release to verify distribution workflow (#646).
* **5.93.1** Fixed: NPE when filtering tree results with no children.
* **5.93.0** New: Files in results are now hidden when all of their children aren't visible in the current filtering state (#644).
* **5.92.0** New: Added CheckStyle 10.17.0.
Expand Down
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
id("org.infernus.idea.checkstyle.build")
}

version = "5.93.1"
version = "5.93.2"

repositories {
mavenCentral()
Expand All @@ -35,6 +35,10 @@ intellijPlatform {

publishing {
token.set(System.getenv("JETBRAINS_PLUGIN_REPO_TOKEN"))

// Test release
channels.set(listOf("Testing"))
hidden.set(true)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ private static List<URL> baseClasspathUrlsForPackagedPlugin(@NotNull final Strin
@NotNull final String basePath) {
try {
final List<URL> urls = new ArrayList<>();
urls.add(getClassesDirectory(basePath).toURI().toURL());

urls.add(new File(basePath, "checkstyle/classes").toURI().toURL());
for (String jar : splitClassPathFromProperties(classPathFromProps)) {
File jarLocation = new File(basePath, jar);
if (!jarLocation.exists()) {
Expand All @@ -138,6 +138,20 @@ private static List<URL> baseClasspathUrlsForPackagedPlugin(@NotNull final Strin
}
}

private static @NotNull File getClassesDirectory(@NotNull final String basePath) {
final File basePathFile = new File(basePath);
if (!new File(basePath).exists()) {
throw new CheckStylePluginException("Cannot find plugin directory: " + basePathFile.getAbsolutePath());
}

final File classesDirectory = new File(basePathFile, "checkstyle/classes");
if (!classesDirectory.exists()) {
throw new CheckStylePluginException("Cannot find Checkstyle classes directory: " + classesDirectory.getAbsolutePath());
}

return classesDirectory;
}

private List<URL> baseClasspathUrlsForIDEAUnitTests(@NotNull final String classPathFromProps) {
try {
final List<URL> urls = new ArrayList<>();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<change-notes>
<![CDATA[
<ul>
<li>5.93.2: WiP: test release to verify distribution workflow (#646).</li>
<li>5.93.1: Fixed: NPE when filtering tree results with no children.</li>
<li>5.93.0: New: Files in results are now hidden when all of their children aren't visible in the current filtering state (#644).</li>
<li>5.92.0: New: Added CheckStyle 10.17.0.</li>
Expand Down

0 comments on commit 2f2c9ab

Please sign in to comment.