Skip to content

Commit

Permalink
prepare release 0.14.0 #364
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
codecholeric authored May 23, 2020
2 parents 6a2de78 + c8363d2 commit f86b87a
Show file tree
Hide file tree
Showing 27 changed files with 144 additions and 134 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.13.1'
testImplementation 'com.tngtech.archunit:archunit:0.14.0'
```

###### Maven
Expand All @@ -26,7 +26,7 @@ testImplementation 'com.tngtech.archunit:archunit:0.13.1'
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.13.1</version>
<version>0.14.0</version>
<scope>test</scope>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-engine</artifactId>
<version>1.5.2</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ext {

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

repositories {
mavenCentral()
Expand All @@ -141,7 +141,7 @@ task clean {
}
}

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

description createModuleDescription(rootProject.description, project)
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.13.1
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.14.0
- 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.13.1</version>
<version>0.14.0</version>
<scope>test</scope>
</dependency>
```

#### Gradle
```groovy
dependencies {
testImplementation 'com.tngtech.archunit:archunit:0.13.1'
testImplementation 'com.tngtech.archunit:archunit:0.14.0'
}
```

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

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").
12 changes: 6 additions & 6 deletions docs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id "org.asciidoctor.convert" version "1.5.3"
id "org.asciidoctor.convert" version "2.4.0"
}

dependencies {
asciidoctor 'org.asciidoctor:asciidoctorj-diagram:1.5.11'
asciidoctor 'org.asciidoctor:asciidoctorj-diagram:2.0.2'
}

task cleanUserGuide(type: Delete) {
Expand All @@ -12,7 +12,8 @@ task cleanUserGuide(type: Delete) {

asciidoctor {
backends 'html'
attributes 'source-highlighter': 'highlightjs',
attributes 'revnumber': project.version,
'source-highlighter': 'highlightjs',
'highlightjs-theme': 'mono-blue',
'stylesheet': 'archunit.css'
sourceDir file('userguide')
Expand All @@ -25,9 +26,8 @@ asciidoctor {
}

asciidoctorj {
version = '1.5.8.1'
version = '2.3.0'
}

asciidoctor.dependsOn cleanUserGuide

defaultTasks 'asciidoctor'
task renderUserGuide(dependsOn: asciidoctor)
1 change: 0 additions & 1 deletion docs/userguide/000_Index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ifndef::env-site[:toc: left]
:page-layout: splash
:page-description: {description}
:page-keywords: {keywords}
:version: 0.13.1
:icons: font
:source-highlighter: coderay
:prewrap!:
Expand Down
24 changes: 12 additions & 12 deletions docs/userguide/002_Installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tngtech.archunit%22[Maven
To use ArchUnit in combination with JUnit 4, include the following dependency from
Maven Central:

[source,xml,options="nowrap"]
[source,xml,options="nowrap",subs="verbatim,attributes"]
.pom.xml
----
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit4</artifactId>
<version>0.13.1</version>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
----

[source,options="nowrap"]
[source,options="nowrap",subs="verbatim,attributes"]
.build.gradle
----
dependencies {
testImplementation 'com.tngtech.archunit:archunit-junit4:0.13.1'
testImplementation 'com.tngtech.archunit:archunit-junit4:{revnumber}'
}
----

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

[source,xml,options="nowrap"]
[source,xml,options="nowrap",subs="verbatim,attributes"]
.pom.xml
----
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>0.13.1</version>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
----

[source,options="nowrap"]
[source,options="nowrap",subs="verbatim,attributes"]
.build.gradle
----
dependencies {
testImplementation 'com.tngtech.archunit:archunit-junit5:0.13.1'
testImplementation 'com.tngtech.archunit:archunit-junit5:{revnumber}'
}
----

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

[source,xml,options="nowrap"]
[source,xml,options="nowrap",subs="verbatim,attributes"]
.pom.xml
----
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.13.1</version>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
----

[source,options="nowrap"]
[source,options="nowrap",subs="verbatim,attributes"]
.build.gradle
----
dependencies {
testImplementation 'com.tngtech.archunit:archunit:0.13.1'
testImplementation 'com.tngtech.archunit:archunit:{revnumber}'
}
----

Expand Down
Loading

0 comments on commit f86b87a

Please sign in to comment.