Skip to content

Commit 3cd32a2

Browse files
authored
Release 1.4.2 (#1604)
2 parents b72fcaf + 7124f09 commit 3cd32a2

9 files changed

Lines changed: 45 additions & 25 deletions

File tree

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:1.4.1'
20+
testImplementation 'com.tngtech.archunit:archunit:1.4.2'
2121
```
2222

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

archunit-maven-test/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def repositoryUrls = [
1616
releases : 'https://nexus.int.tngtech.com/repository/maven-releases'
1717
],
1818
sonatype: [
19-
snapshots: 'https://oss.sonatype.org/content/repositories/snapshots',
20-
releases : 'https://oss.sonatype.org/content/repositories/releases'
19+
snapshots: 'https://central.sonatype.com/repository/maven-snapshots',
20+
releases : 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
2121
]
2222
]
2323
def createRepositoriesTag = { repoUrls ->

build-steps/release/publish.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ nexusPublishing {
77
packageGroup = 'com.tngtech'
88
repositories {
99
sonatype {
10+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
11+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1012
username = findProperty("sonatypeUsername")
1113
password = findProperty("sonatypePassword")
1214
}

build-steps/release/test-release.gradle

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,22 @@ task testRelease() {
99
text = text.replace('mavenCentral()', '''
1010
mavenCentral()
1111
maven {
12-
url "https://oss.sonatype.org/content/repositories/staging/"
13-
credentials {
14-
username project.getProperty('sonatypeUsername')
15-
password project.getProperty('sonatypePassword')
12+
url "https://central.sonatype.com/api/v1/publisher/deployments/download/"
13+
credentials(HttpHeaderCredentials) {
14+
name = "Authorization"
15+
value = "Bearer " + (project.getProperty('sonatypeUsername') + ":" + project.getProperty('sonatypePassword')).bytes.encodeBase64()
16+
}
17+
authentication {
18+
header(HttpHeaderAuthentication)
1619
}
1720
}''')
1821
}
1922
}
2023

24+
def configureHttpSocketTimeout = {
25+
new File(testReleaseDir, 'gradle.properties') << 'systemProp.org.gradle.internal.http.socketTimeout=600000\n'
26+
}
27+
2128
def testExampleProject = { String exampleProjectName ->
2229
List<String> testClassNames = fileTree(new File(testReleaseDir, exampleProjectName)) {
2330
include '**/*Test.java'
@@ -47,6 +54,7 @@ task testRelease() {
4754
updateArchUnitExampleVersion(testReleaseDir)
4855

4956
configureStagingRepository()
57+
configureHttpSocketTimeout()
5058

5159
testExampleProject('example-plain')
5260
testExampleProject('example-junit4')

buildSrc/src/main/groovy/archunit.java-release-check-conventions.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,25 @@ ext.getExpectedPomFileContent = {
3838

3939
task checkUploadedArtifacts {
4040
doLast {
41-
def tngRepoId = project.findProperty('tngRepoId') ?: rootProject.closeSonatypeStagingRepository.stagingRepositoryId.get()
42-
def rootUrl = "https://oss.sonatype.org/service/local/repositories/${tngRepoId}/content/com/tngtech/archunit"
43-
44-
def createArtifactUrl = { String artifactId ->
45-
"${rootUrl}/${artifactId}/${version}/${artifactId}-${version}"
41+
def getArtifact = { String artifactId, String fullEnding ->
42+
def repositoryUrl = 'https://central.sonatype.com/api/v1/publisher/deployments/download'
43+
def artifactUrl = "$repositoryUrl/com/tngtech/archunit/$artifactId/$version/$artifactId-$version$fullEnding"
44+
def connection = new URL(artifactUrl).openConnection()
45+
def token = (project.getProperty('sonatypeUsername') + ':' + project.getProperty('sonatypePassword')).bytes.encodeBase64()
46+
connection.setRequestProperty("Authorization", "Bearer $token")
47+
return connection.inputStream
4648
}
4749

4850
def getUploadedFile = { String artifactId, String ending, String suffix ->
4951
def fullEnding = (!suffix.isEmpty() ? "-${suffix}" : '') + ".${ending}"
5052
def tempDir = Files.createTempDirectory('release-check').toFile()
5153
File result = new File(tempDir, "${artifactId}${fullEnding}")
52-
result.bytes = new URL("${createArtifactUrl(artifactId)}${fullEnding}").bytes
54+
result.bytes = getArtifact(artifactId, fullEnding).bytes
5355
result
5456
}
5557

5658
def getUploadedPomFileContent = {
57-
new URL("${createArtifactUrl(project.name)}.pom").text.stripIndent()
59+
getArtifact(project.name, ".pom").text.stripIndent()
5860
}
5961

6062
def checkPom = {

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/1.4.1
13+
url: https://javadoc.io/doc/com.tngtech.archunit/archunit/1.4.2
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>1.4.1</version>
18+
<version>1.4.2</version>
1919
<scope>test</scope>
2020
</dependency>
2121
```
2222

2323
#### Gradle
2424
```groovy
2525
dependencies {
26-
testImplementation 'com.tngtech.archunit:archunit:1.4.1'
26+
testImplementation 'com.tngtech.archunit:archunit:1.4.2'
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 (v1.4.2)"
4+
date: 2026-04-18 12:00:00
5+
categories: news release
6+
---
7+
8+
A new release of ArchUnit (v1.4.2) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v1.4.2 "ArchUnit v1.4.2 on GitHub").

docs/userguide/html/000_Index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
<div id="header">
451451
<h1>ArchUnit User Guide</h1>
452452
<div class="details">
453-
<span id="revnumber">version 1.4.1</span>
453+
<span id="revnumber">version 1.4.2</span>
454454
</div>
455455
<div id="toc" class="toc2">
456456
<div id="toctitle">Table of Contents</div>
@@ -619,7 +619,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
619619
<pre class="highlightjs highlight nowrap"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
620620
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
621621
&lt;artifactId&gt;archunit-junit4&lt;/artifactId&gt;
622-
&lt;version&gt;1.4.1&lt;/version&gt;
622+
&lt;version&gt;1.4.2&lt;/version&gt;
623623
&lt;scope&gt;test&lt;/scope&gt;
624624
&lt;/dependency&gt;</code></pre>
625625
</div>
@@ -628,7 +628,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
628628
<div class="title">build.gradle</div>
629629
<div class="content">
630630
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
631-
testImplementation 'com.tngtech.archunit:archunit-junit4:1.4.1'
631+
testImplementation 'com.tngtech.archunit:archunit-junit4:1.4.2'
632632
}</code></pre>
633633
</div>
634634
</div>
@@ -649,7 +649,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
649649
<pre class="highlightjs highlight nowrap"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
650650
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
651651
&lt;artifactId&gt;archunit-junit5&lt;/artifactId&gt;
652-
&lt;version&gt;1.4.1&lt;/version&gt;
652+
&lt;version&gt;1.4.2&lt;/version&gt;
653653
&lt;scope&gt;test&lt;/scope&gt;
654654
&lt;/dependency&gt;</code></pre>
655655
</div>
@@ -658,7 +658,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
658658
<div class="title">build.gradle</div>
659659
<div class="content">
660660
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
661-
testImplementation 'com.tngtech.archunit:archunit-junit5:1.4.1'
661+
testImplementation 'com.tngtech.archunit:archunit-junit5:1.4.2'
662662
}</code></pre>
663663
</div>
664664
</div>
@@ -675,7 +675,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
675675
<pre class="highlightjs highlight nowrap"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
676676
&lt;groupId&gt;com.tngtech.archunit&lt;/groupId&gt;
677677
&lt;artifactId&gt;archunit&lt;/artifactId&gt;
678-
&lt;version&gt;1.4.1&lt;/version&gt;
678+
&lt;version&gt;1.4.2&lt;/version&gt;
679679
&lt;scope&gt;test&lt;/scope&gt;
680680
&lt;/dependency&gt;</code></pre>
681681
</div>
@@ -684,7 +684,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
684684
<div class="title">build.gradle</div>
685685
<div class="content">
686686
<pre class="highlightjs highlight nowrap"><code class="language-none hljs">dependencies {
687-
testImplementation 'com.tngtech.archunit:archunit:1.4.1'
687+
testImplementation 'com.tngtech.archunit:archunit:1.4.2'
688688
}</code></pre>
689689
</div>
690690
</div>

0 commit comments

Comments
 (0)