Skip to content

Commit 78d3899

Browse files
authored
update to archrules plugin 0.1.+ (#9)
compile rules on java 8 for greater compatibility
1 parent fb6ca54 commit 78d3899

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

archrules-deprecation/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
}
1313
java {
1414
toolchain {
15-
languageVersion = JavaLanguageVersion.of(11)
15+
languageVersion = JavaLanguageVersion.of(8)
1616
}
1717
}
1818
dependencyLocking {

archrules-deprecation/gradle.lockfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is expected to be part of source control.
44
ch.qos.logback:logback-classic:1.5.20=archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
55
ch.qos.logback:logback-core:1.5.20=archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
6-
com.netflix.nebula:nebula-archrules-core:0.0.1=archRulesCompileClasspath,archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
6+
com.netflix.nebula:nebula-archrules-core:0.1.0=archRulesCompileClasspath,archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
77
com.tngtech.archunit:archunit:1.4.1=archRulesCompileClasspath,archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
88
net.bytebuddy:byte-buddy:1.17.7=archRulesTestCompileClasspath,archRulesTestRuntimeClasspath
99
org.apiguardian:apiguardian-api:1.1.2=archRulesTestCompileClasspath

archrules-deprecation/src/archRules/java/com/netflix/nebula/archrules/deprecation/DeprecationRule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.tngtech.archunit.lang.Priority;
66
import com.tngtech.archunit.lang.syntax.ArchRuleDefinition;
77

8+
import java.util.Collections;
89
import java.util.Map;
910

1011
import static com.tngtech.archunit.core.domain.JavaAccess.Predicates.target;
@@ -28,6 +29,6 @@ public class DeprecationRule implements ArchRulesService {
2829

2930
@Override
3031
public Map<String, ArchRule> getRules() {
31-
return Map.of("deprecated", deprecationRule);
32+
return Collections.singletonMap("deprecated", deprecationRule);
3233
}
3334
}

settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
21
pluginManagement {
32
plugins {
43
id("com.netflix.nebula.root") version ("24.+")
54
id("com.netflix.nebula.library") version ("24.+")
65
// we should keep the major version of this project in sync with the archrules.library version it is based on
7-
id("com.netflix.nebula.archrules.library") version ("0.+")
6+
// we will align with the minor version until 1.0
7+
id("com.netflix.nebula.archrules.library") version ("0.1.+")
88
}
99
}
1010
plugins {

0 commit comments

Comments
 (0)