Skip to content

Commit

Permalink
Update versions for new release 0.10.1
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
  • Loading branch information
codecholeric committed Mar 17, 2019
1 parent 6fab823 commit aa96f5b
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 30 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

```
testCompile 'com.tngtech.archunit:archunit:0.10.0'
testCompile 'com.tngtech.archunit:archunit:0.10.1'
```

###### Maven
Expand All @@ -26,7 +26,7 @@ testCompile 'com.tngtech.archunit:archunit:0.10.0'
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ wrapper {

allprojects {
group = 'com.tngtech.archunit'
version = '0.10.1-SNAPSHOT'
version = '0.10.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ main:
- title: "User Guide"
url: /userguide/html/000_Index.html
- title: "API"
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.10.0
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.10.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.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
```

#### Gradle
```groovy
dependencies {
testCompile 'com.tngtech.archunit:archunit:0.10.0'
testCompile 'com.tngtech.archunit:archunit:0.10.1'
}
```

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

A new release of ArchUnit (v0.10.1) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v0.10.1 "ArchUnit v0.10.1 on GitHub").
2 changes: 1 addition & 1 deletion docs/userguide/000_Index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ifndef::env-site[:toc: left]
:page-layout: splash
:page-description: {description}
:page-keywords: {keywords}
:version: 0.10.0
:version: 0.10.1
:icons: font
:source-highlighter: coderay
:prewrap!:
Expand Down
16 changes: 8 additions & 8 deletions docs/userguide/002_Installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Maven Central:
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit4</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
----
Expand All @@ -26,7 +26,7 @@ Maven Central:
.build.gradle
----
dependencies {
testCompile 'com.tngtech.archunit:archunit-junit4:0.10.0'
testCompile 'com.tngtech.archunit:archunit-junit4:0.10.1'
}
----

Expand Down Expand Up @@ -56,13 +56,13 @@ A typical Maven configuration could look like this:
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5-api</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5-engine</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -80,8 +80,8 @@ The configuration for Gradle allows to clearly distinguish a test runtime scope:
----
dependencies {
...
testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.0'
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.0'
testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.1'
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.1'
}
----

Expand All @@ -96,7 +96,7 @@ context, include the core ArchUnit dependency from Maven Central:
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<scope>test</scope>
</dependency>
----
Expand All @@ -105,7 +105,7 @@ context, include the core ArchUnit dependency from Maven Central:
.build.gradle
----
dependencies {
testCompile 'com.tngtech.archunit:archunit:0.10.0'
testCompile 'com.tngtech.archunit:archunit:0.10.1'
}
----

Expand Down
33 changes: 18 additions & 15 deletions docs/userguide/html/000_Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
<pre class="highlightjs highlight nowrap"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit-junit4&lt;/artifactId&gt;
&lt;version&gt;0.10.0&lt;/version&gt;
&lt;version&gt;0.10.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</div>
Expand All @@ -618,7 +618,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>dependencies {
testCompile 'com.tngtech.archunit:archunit-junit4:0.10.0'
testCompile 'com.tngtech.archunit:archunit-junit4:0.10.1'
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -650,13 +650,13 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit-junit5-api&lt;/artifactId&gt;
&lt;version&gt;0.10.0&lt;/version&gt;
&lt;version&gt;0.10.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit-junit5-engine&lt;/artifactId&gt;
&lt;version&gt;0.10.0&lt;/version&gt;
&lt;version&gt;0.10.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
Expand Down Expand Up @@ -685,8 +685,8 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
<div class="content">
<pre class="highlightjs highlight nowrap"><code>dependencies {
...
testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.0'
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.0'
testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.1'
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.1'
}</code></pre>
</div>
</div>
Expand All @@ -703,7 +703,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
<pre class="highlightjs highlight nowrap"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
&lt;artifactId&gt;archunit&lt;/artifactId&gt;
&lt;version&gt;0.10.0&lt;/version&gt;
&lt;version&gt;0.10.1&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</div>
Expand All @@ -712,7 +712,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>dependencies {
testCompile 'com.tngtech.archunit:archunit:0.10.0'
testCompile 'com.tngtech.archunit:archunit:0.10.1'
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -1625,18 +1625,21 @@ <h3 id="_rules_with_custom_concepts"><a class="anchor" href="#_rules_with_custom
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight nowrap"><code class="language-java hljs" data-lang="java">ClassesTransformer&lt;JavaField&gt; fields = new AbstractClassesTransformer&lt;JavaField&gt;("fields") {
<pre class="highlightjs highlight nowrap"><code class="language-java hljs" data-lang="java">ClassesTransformer&lt;JavaPackage&gt; packages = new AbstractClassesTransformer&lt;JavaPackage&gt;("packages") {
@Override
public Iterable&lt;JavaField&gt; doTransform(JavaClasses classes) {
Set&lt;JavaField&gt; result = new HashSet&lt;&gt;();
for (JavaClass javaClass : classes) {
result.addAll(javaClass.getFields());
}
public Iterable&lt;JavaPackage&gt; doTransform(JavaClasses classes) {
Set&lt;JavaPackage&gt; result = new HashSet&lt;&gt;();
classes.getDefaultPackage().accept(alwaysTrue(), new PackageVisitor() {
@Override
public void visit(JavaPackage javaPackage) {
result.add(javaPackage);
}
});
return result;
}
};

all(fields).that(have(modifier(PUBLIC))).should(...)</code></pre>
all(packages).that(containACoreClass()).should(...);</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down

0 comments on commit aa96f5b

Please sign in to comment.