Skip to content

Commit f86b87a

Browse files
authored
prepare release 0.14.0 TNG#364
Consistently set version to `0.14.0` in user guide by using an attribute reference to `{revnumber}`. Also upgraded dependencies of AsciiDoctor to current versions and included `/docs` into the core build, so attributes like the version are automatically consistent and we have a task in the root project to create the user guide.
2 parents 6a2de78 + c8363d2 commit f86b87a

27 files changed

+144
-134
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ framework.
1717
###### Gradle
1818

1919
```
20-
testImplementation 'com.tngtech.archunit:archunit:0.13.1'
20+
testImplementation 'com.tngtech.archunit:archunit:0.14.0'
2121
```
2222

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

build-steps/release/expected/archunit-junit5-engine-api.pom

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.junit.platform</groupId>
5353
<artifactId>junit-platform-engine</artifactId>
54-
<version>1.5.2</version>
54+
<version>1.6.2</version>
5555
<scope>compile</scope>
5656
</dependency>
5757
</dependencies>

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ext {
122122

123123
allprojects {
124124
group = 'com.tngtech.archunit'
125-
version = '0.14.0-SNAPSHOT'
125+
version = '0.14.0'
126126

127127
repositories {
128128
mavenCentral()
@@ -141,7 +141,7 @@ task clean {
141141
}
142142
}
143143

144-
subprojects {
144+
configure(subprojects.findAll {it.name != 'docs'}) {
145145
apply plugin: 'java-library'
146146

147147
description createModuleDescription(rootProject.description, project)

docs/_data/navigation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ main:
88
- title: "User Guide"
99
url: /userguide/html/000_Index.html
1010
- title: "API"
11-
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.13.1
11+
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.14.0
1212
- title: "About"
1313
url: /about
1414

docs/_pages/getting-started.md

+2-2
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.13.1</version>
18+
<version>0.14.0</version>
1919
<scope>test</scope>
2020
</dependency>
2121
```
2222

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: splash
3+
title: "New release of ArchUnit (v0.14.0)"
4+
date: 2020-05-24 01:00:00
5+
categories: news release
6+
---
7+
8+
A new release of ArchUnit (v0.14.0) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v0.14.0 "ArchUnit v0.14.0 on GitHub").

docs/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
plugins {
2-
id "org.asciidoctor.convert" version "1.5.3"
2+
id "org.asciidoctor.convert" version "2.4.0"
33
}
44

55
dependencies {
6-
asciidoctor 'org.asciidoctor:asciidoctorj-diagram:1.5.11'
6+
asciidoctor 'org.asciidoctor:asciidoctorj-diagram:2.0.2'
77
}
88

99
task cleanUserGuide(type: Delete) {
@@ -12,7 +12,8 @@ task cleanUserGuide(type: Delete) {
1212

1313
asciidoctor {
1414
backends 'html'
15-
attributes 'source-highlighter': 'highlightjs',
15+
attributes 'revnumber': project.version,
16+
'source-highlighter': 'highlightjs',
1617
'highlightjs-theme': 'mono-blue',
1718
'stylesheet': 'archunit.css'
1819
sourceDir file('userguide')
@@ -25,9 +26,8 @@ asciidoctor {
2526
}
2627

2728
asciidoctorj {
28-
version = '1.5.8.1'
29+
version = '2.3.0'
2930
}
3031

3132
asciidoctor.dependsOn cleanUserGuide
32-
33-
defaultTasks 'asciidoctor'
33+
task renderUserGuide(dependsOn: asciidoctor)

docs/userguide/000_Index.adoc

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ifndef::env-site[:toc: left]
77
:page-layout: splash
88
:page-description: {description}
99
:page-keywords: {keywords}
10-
:version: 0.13.1
1110
:icons: font
1211
:source-highlighter: coderay
1312
:prewrap!:

docs/userguide/002_Installation.adoc

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tngtech.archunit%22[Maven
1111
To use ArchUnit in combination with JUnit 4, include the following dependency from
1212
Maven Central:
1313

14-
[source,xml,options="nowrap"]
14+
[source,xml,options="nowrap",subs="verbatim,attributes"]
1515
.pom.xml
1616
----
1717
<dependency>
1818
<groupId>com.tngtech.archunit</groupId>
1919
<artifactId>archunit-junit4</artifactId>
20-
<version>0.13.1</version>
20+
<version>{revnumber}</version>
2121
<scope>test</scope>
2222
</dependency>
2323
----
2424

25-
[source,options="nowrap"]
25+
[source,options="nowrap",subs="verbatim,attributes"]
2626
.build.gradle
2727
----
2828
dependencies {
29-
testImplementation 'com.tngtech.archunit:archunit-junit4:0.13.1'
29+
testImplementation 'com.tngtech.archunit:archunit-junit4:{revnumber}'
3030
}
3131
----
3232

@@ -39,22 +39,22 @@ artifact transitively including both API and engine with the correct scope, whic
3939
as a test compile dependency. Thus to include ArchUnit's JUnit 5 support, simply add the following dependency
4040
from Maven Central:
4141

42-
[source,xml,options="nowrap"]
42+
[source,xml,options="nowrap",subs="verbatim,attributes"]
4343
.pom.xml
4444
----
4545
<dependency>
4646
<groupId>com.tngtech.archunit</groupId>
4747
<artifactId>archunit-junit5</artifactId>
48-
<version>0.13.1</version>
48+
<version>{revnumber}</version>
4949
<scope>test</scope>
5050
</dependency>
5151
----
5252

53-
[source,options="nowrap"]
53+
[source,options="nowrap",subs="verbatim,attributes"]
5454
.build.gradle
5555
----
5656
dependencies {
57-
testImplementation 'com.tngtech.archunit:archunit-junit5:0.13.1'
57+
testImplementation 'com.tngtech.archunit:archunit-junit5:{revnumber}'
5858
}
5959
----
6060

@@ -63,22 +63,22 @@ dependencies {
6363
ArchUnit works with any test framework that executes Java code. To use ArchUnit in such a
6464
context, include the core ArchUnit dependency from Maven Central:
6565

66-
[source,xml,options="nowrap"]
66+
[source,xml,options="nowrap",subs="verbatim,attributes"]
6767
.pom.xml
6868
----
6969
<dependency>
7070
<groupId>com.tngtech.archunit</groupId>
7171
<artifactId>archunit</artifactId>
72-
<version>0.13.1</version>
72+
<version>{revnumber}</version>
7373
<scope>test</scope>
7474
</dependency>
7575
----
7676

77-
[source,options="nowrap"]
77+
[source,options="nowrap",subs="verbatim,attributes"]
7878
.build.gradle
7979
----
8080
dependencies {
81-
testImplementation 'com.tngtech.archunit:archunit:0.13.1'
81+
testImplementation 'com.tngtech.archunit:archunit:{revnumber}'
8282
}
8383
----
8484

0 commit comments

Comments
 (0)