diff --git a/build.gradle b/build.gradle index a362d07a..69fb8795 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ subprojects { proj -> description = 'Structurizr' group = 'com.structurizr' - version = '1.26.0' + version = '1.26.1' repositories { mavenCentral() diff --git a/docs/changelog.md b/docs/changelog.md index fbbcfec7..15f4e97b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,6 @@ # Changelog -## 1.26.0 (28th July 2023) +## 1.26.1 (28th July 2023) - Adds the ability to specify the workspace visibility (private/public) via the workspace configuration. diff --git a/structurizr-core/src/com/structurizr/configuration/WorkspaceConfiguration.java b/structurizr-core/src/com/structurizr/configuration/WorkspaceConfiguration.java index 18a87c96..d937b3c3 100644 --- a/structurizr-core/src/com/structurizr/configuration/WorkspaceConfiguration.java +++ b/structurizr-core/src/com/structurizr/configuration/WorkspaceConfiguration.java @@ -26,11 +26,11 @@ public Visibility getVisibility() { } /** - * Gets the visibility of this workspace (private or public). + * Sets the visibility of this workspace (private or public). * - * @param visibility a Visibility enum + * @param visibility a Visibility enum, or null to indicate that no changes should be made */ - void setVisibility(Visibility visibility) { + public void setVisibility(Visibility visibility) { this.visibility = visibility; } diff --git a/structurizr-core/test/unit/com/structurizr/configuration/WorkspaceConfigurationTests.java b/structurizr-core/test/unit/com/structurizr/configuration/WorkspaceConfigurationTests.java index 52933903..c4a2f99f 100644 --- a/structurizr-core/test/unit/com/structurizr/configuration/WorkspaceConfigurationTests.java +++ b/structurizr-core/test/unit/com/structurizr/configuration/WorkspaceConfigurationTests.java @@ -62,6 +62,9 @@ void visibility() { configuration.setVisibility(Visibility.Private); assertEquals(Visibility.Private, configuration.getVisibility()); + + configuration.setVisibility(null); + assertNull(configuration.getVisibility()); } @Test