Skip to content

Add temporary publication to formally deprecate the legacy archunit-junit package - #1673

Merged
hankem merged 1 commit into
mainfrom
deprecate-legacy-archunit-junit
Jul 31, 2026
Merged

Add temporary publication to formally deprecate the legacy archunit-junit package#1673
hankem merged 1 commit into
mainfrom
deprecate-legacy-archunit-junit

Conversation

@schulzjo-tng

Copy link
Copy Markdown
Contributor

To validate:

  • Run the publishToMavenLocal task
  • Gradle:
    • On your local machine, create build.gradle with the following contents:
      plugins {
          id 'java'
      }
      
      description = 'Demonstrates resolution of the relocated archunit-junit artifact'
      
      repositories {
          mavenLocal()
          mavenCentral()
      }
      
      dependencies {
          implementation 'com.tngtech.archunit:archunit-junit:0.9.0'
      }
      
    • Create an empty settings.gradle next to it
    • Run gradle dependencies. Note how the dependency is resolved to archunit-junit4:0.9.0
  • Maven:
    • On your local machine, create a pom.xml with the following contents:
      <project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
      
        <groupId>com.tngtech.archunit.demo</groupId>
        <artifactId>archunit-junit-relocation-maven-demo</artifactId>
        <version>1.0-SNAPSHOT</version>
      
        <dependencies>
            <dependency>
                <groupId>com.tngtech.archunit</groupId>
                <artifactId>archunit-junit</artifactId>
                <version>0.9.0</version>
            </dependency>
        </dependencies>
      </project>
      
      • Run mvn install. A warning should be shown that archunit-junit was renamed to archunit-junit4
  • Compare the local pom.xml in your local Maven store to the one of archunit-junit:0.8.3. The diff should be sensible.

Closes #1663

@schulzjo-tng
schulzjo-tng force-pushed the deprecate-legacy-archunit-junit branch 2 times, most recently from 7304188 to 098afcb Compare July 28, 2026 06:01
@schulzjo-tng
schulzjo-tng marked this pull request as ready for review July 29, 2026 14:16
…unit-junit` package (#1663)

Signed-off-by: Dr. Jonathan Schulz <jonathan.schulz@tngtech.com>
@hankem
hankem force-pushed the deprecate-legacy-archunit-junit branch from 098afcb to 6f223a0 Compare July 31, 2026 11:22
@hankem
hankem merged commit f30045d into main Jul 31, 2026
32 checks passed
@hankem
hankem deleted the deprecate-legacy-archunit-junit branch July 31, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look into deprecating the legacy archunit-junit public package

2 participants