Skip to content

Commit

Permalink
prepare release 0.23.1
Browse files Browse the repository at this point in the history
Signed-off-by: codecholeric <action@github.com>
  • Loading branch information
actions-user committed Feb 27, 2022
1 parent c913648 commit d236cd3
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ framework.
###### Gradle

```
testImplementation 'com.tngtech.archunit:archunit:0.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.23.1'
```

###### Maven
Expand All @@ -26,7 +26,7 @@ testImplementation 'com.tngtech.archunit:archunit:0.23.0'
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.23.0</version>
<version>0.23.1</version>
<scope>test</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ main:
- title: "User Guide"
url: /userguide/html/000_Index.html
- title: "API"
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.23.0
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.23.1
- title: "About"
url: /about
4 changes: 2 additions & 2 deletions docs/_pages/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ ArchUnit can be obtained from Maven Central.
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.23.0</version>
<version>0.23.1</version>
<scope>test</scope>
</dependency>
```

#### Gradle
```groovy
dependencies {
testImplementation 'com.tngtech.archunit:archunit:0.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.23.1'
}
```

Expand Down
8 changes: 8 additions & 0 deletions docs/_posts/2022-02-27-release-v0.23.1.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: splash
title: "New release of ArchUnit (v0.23.1)"
date: 2022-02-27 12:00:00
categories: news release
---

A new release of ArchUnit (v0.23.1) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v0.23.1 "ArchUnit v0.23.1 on GitHub").
37 changes: 28 additions & 9 deletions docs/userguide/html/000_Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
<div id="header">
<h1>ArchUnit User Guide</h1>
<div class="details">
<span id="revnumber">version 0.23.0</span>
<span id="revnumber">version 0.23.1</span>
</div>
<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
Expand Down Expand Up @@ -617,7 +617,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit-junit4&lt;/artifactId&gt;
&lt;version&gt;0.23.0&lt;/version&gt;
&lt;version&gt;0.23.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</div>
Expand All @@ -626,7 +626,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
<div class="title">build.gradle</div>
<div class="content">
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
testImplementation 'com.tngtech.archunit:archunit-junit4:0.23.0'
testImplementation 'com.tngtech.archunit:archunit-junit4:0.23.1'
}</code></pre>
</div>
</div>
Expand All @@ -647,7 +647,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit-junit5&lt;/artifactId&gt;
&lt;version&gt;0.23.0&lt;/version&gt;
&lt;version&gt;0.23.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</div>
Expand All @@ -656,7 +656,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
<div class="title">build.gradle</div>
<div class="content">
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
testImplementation 'com.tngtech.archunit:archunit-junit5:0.23.0'
testImplementation 'com.tngtech.archunit:archunit-junit5:0.23.1'
}</code></pre>
</div>
</div>
Expand All @@ -673,7 +673,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit&lt;/artifactId&gt;
&lt;version&gt;0.23.0&lt;/version&gt;
&lt;version&gt;0.23.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</div>
Expand All @@ -682,7 +682,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
<div class="title">build.gradle</div>
<div class="content">
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
testImplementation 'com.tngtech.archunit:archunit:0.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.23.1'
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -2917,8 +2917,27 @@ <h3 id="_fail_rules_on_empty_should"><a class="anchor" href="#_fail_rules_on_emp
This is likely not what most users want.
Thus, by default ArchUnit will fail checking the rule in this case.
If you want to allow evaluating such rules,
i.e. where the actual input to the should-conditionis empty,
you can set the following property:</p>
i.e. where the actual input to the should-clause is empty,
you can use one of the following ways:</p>
</div>
<div class="paragraph">
<p><strong>Allow Empty Should on a Per-Rule Basis</strong></p>
</div>
<div class="paragraph">
<p>On each <code>ArchRule</code> you can use the method <code>ArchRule.allowEmptyShould(..)</code> to override the behavior
for a single rule, e.g.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight nowrap"><code data-lang="java" class="language-java hljs">// create a rule that allows that no classes are passed to the should-clause
classes().that()...should()...allowEmptyShould(true)</code></pre>
</div>
</div>
<div class="paragraph">
<p><strong>Allow Empty Should Globally</strong></p>
</div>
<div class="paragraph">
<p>To allow all rules to be evaluated without checking any classes you can set the following property:</p>
</div>
<div class="listingblock">
<div class="title">archunit.properties</div>
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.parallel=true
archunit.group=com.tngtech.archunit
archunit.version=0.23.1-SNAPSHOT
archunit.version=0.23.1
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED

0 comments on commit d236cd3

Please sign in to comment.