Skip to content

Commit 821f164

Browse files
committed
prepare release 0.22.0
Signed-off-by: codecholeric <action@github.com>
1 parent 543241b commit 821f164

25 files changed

Lines changed: 58 additions & 13 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ framework.
1717
###### Gradle
1818

1919
```
20-
testImplementation 'com.tngtech.archunit:archunit:0.21.0'
20+
testImplementation 'com.tngtech.archunit:archunit:0.22.0'
2121
```
2222

2323
###### Maven
@@ -26,7 +26,7 @@ testImplementation 'com.tngtech.archunit:archunit:0.21.0'
2626
<dependency>
2727
<groupId>com.tngtech.archunit</groupId>
2828
<artifactId>archunit</artifactId>
29-
<version>0.21.0</version>
29+
<version>0.22.0</version>
3030
<scope>test</scope>
3131
</dependency>
3232
```

docs/_data/navigation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ main:
1010
- title: "User Guide"
1111
url: /userguide/html/000_Index.html
1212
- title: "API"
13-
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.21.0
13+
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.22.0
1414
- title: "About"
1515
url: /about

docs/_pages/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ ArchUnit can be obtained from Maven Central.
1515
<dependency>
1616
<groupId>com.tngtech.archunit</groupId>
1717
<artifactId>archunit</artifactId>
18-
<version>0.21.0</version>
18+
<version>0.22.0</version>
1919
<scope>test</scope>
2020
</dependency>
2121
```
2222

2323
#### Gradle
2424
```groovy
2525
dependencies {
26-
testImplementation 'com.tngtech.archunit:archunit:0.21.0'
26+
testImplementation 'com.tngtech.archunit:archunit:0.22.0'
2727
}
2828
```
2929

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: splash
3+
title: "New release of ArchUnit (v0.22.0)"
4+
date: 2021-10-30 12:00:00
5+
categories: news release
6+
---
7+
8+
A new release of ArchUnit (v0.22.0) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v0.22.0 "ArchUnit v0.22.0 on GitHub").

docs/userguide/html/000_Index.html

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
<div id="header">
450450
<h1>ArchUnit User Guide</h1>
451451
<div class="details">
452-
<span id="revnumber">version 0.21.0</span>
452+
<span id="revnumber">version 0.22.0</span>
453453
</div>
454454
<div id="toc" class="toc2">
455455
<div id="toctitle">Table of Contents</div>
@@ -616,7 +616,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
616616
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
617617
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
618618
&lt;artifactId&gt;archunit-junit4&lt;/artifactId&gt;
619-
&lt;version&gt;0.21.0&lt;/version&gt;
619+
&lt;version&gt;0.22.0&lt;/version&gt;
620620
&lt;scope&gt;test&lt;/scope&gt;
621621
&lt;/dependency&gt;</code></pre>
622622
</div>
@@ -625,7 +625,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
625625
<div class="title">build.gradle</div>
626626
<div class="content">
627627
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
628-
testImplementation 'com.tngtech.archunit:archunit-junit4:0.21.0'
628+
testImplementation 'com.tngtech.archunit:archunit-junit4:0.22.0'
629629
}</code></pre>
630630
</div>
631631
</div>
@@ -646,7 +646,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
646646
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
647647
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
648648
&lt;artifactId&gt;archunit-junit5&lt;/artifactId&gt;
649-
&lt;version&gt;0.21.0&lt;/version&gt;
649+
&lt;version&gt;0.22.0&lt;/version&gt;
650650
&lt;scope&gt;test&lt;/scope&gt;
651651
&lt;/dependency&gt;</code></pre>
652652
</div>
@@ -655,7 +655,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
655655
<div class="title">build.gradle</div>
656656
<div class="content">
657657
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
658-
testImplementation 'com.tngtech.archunit:archunit-junit5:0.21.0'
658+
testImplementation 'com.tngtech.archunit:archunit-junit5:0.22.0'
659659
}</code></pre>
660660
</div>
661661
</div>
@@ -672,7 +672,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
672672
<pre class="highlightjs highlight nowrap"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
673673
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
674674
&lt;artifactId&gt;archunit&lt;/artifactId&gt;
675-
&lt;version&gt;0.21.0&lt;/version&gt;
675+
&lt;version&gt;0.22.0&lt;/version&gt;
676676
&lt;scope&gt;test&lt;/scope&gt;
677677
&lt;/dependency&gt;</code></pre>
678678
</div>
@@ -681,7 +681,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
681681
<div class="title">build.gradle</div>
682682
<div class="content">
683683
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
684-
testImplementation 'com.tngtech.archunit:archunit:0.21.0'
684+
testImplementation 'com.tngtech.archunit:archunit:0.22.0'
685685
}</code></pre>
686686
</div>
687687
</div>
@@ -2673,6 +2673,43 @@ <h4 id="_grouping_rules"><a class="anchor" href="#_grouping_rules"></a>9.1.5. Gr
26732673
This also allows an easy reuse of a rule library in different projects or modules.</p>
26742674
</div>
26752675
</div>
2676+
<div class="sect3">
2677+
<h4 id="_generating_display_names"><a class="anchor" href="#_generating_display_names"></a>9.1.6. Generating Display Names</h4>
2678+
<div class="paragraph">
2679+
<p>ArchUnit offers the possibility to generate more readable names in the test report by replacing underscores in the
2680+
original rule names by spaces. For example, if a method or field is named</p>
2681+
</div>
2682+
<div class="listingblock">
2683+
<div class="content">
2684+
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">some_Field_or_Method_rule</code></pre>
2685+
</div>
2686+
</div>
2687+
<div class="paragraph">
2688+
<p>this will appear as</p>
2689+
</div>
2690+
<div class="listingblock">
2691+
<div class="content">
2692+
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">some Field or Method rule</code></pre>
2693+
</div>
2694+
</div>
2695+
<div class="paragraph">
2696+
<p>in the test report.</p>
2697+
</div>
2698+
<div class="paragraph">
2699+
<p>This is similar to JUnit 5&#8217;s <code>@DisplayNameGeneration</code> annotation, but because this display name generation does not
2700+
fit well with ArchUnit&#8217;s rule execution and because we&#8217;d like to offer this feature for JUnit 4 as well, you can enable
2701+
display name generation in ArchUnit with a configuration property (see <a href="#_advanced_configuration">Advanced Configuration</a>):</p>
2702+
</div>
2703+
<div class="listingblock">
2704+
<div class="title">archunit.properties</div>
2705+
<div class="content">
2706+
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">junit.displayName.replaceUnderscoresBySpaces=true</code></pre>
2707+
</div>
2708+
</div>
2709+
<div class="paragraph">
2710+
<p>If you omit the property (or set it to <code>false</code>) the original rule names are used as display names.</p>
2711+
</div>
2712+
</div>
26762713
</div>
26772714
</div>
26782715
</div>
-1 Bytes
Loading
-2 Bytes
Loading
-2 Bytes
Loading
-2 Bytes
Loading
-1 Bytes
Loading

0 commit comments

Comments
 (0)