Skip to content

Commit 4272889

Browse files
committed
Install Structure101 Plugin
Issue spring-projectsgh-6236
1 parent 6978f51 commit 4272889

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
*.odg binary
1515
*.otg binary
1616
*.png binary
17+
*.hsx binary

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ buildscript {
1414

1515
apply plugin: 'io.spring.nohttp'
1616
apply plugin: 'locks'
17+
apply plugin: 's101'
1718
apply plugin: 'io.spring.convention.root'
1819
apply plugin: 'io.spring.convention.include-check-remote'
1920
apply plugin: 'org.jetbrains.kotlin.jvm'
@@ -155,3 +156,7 @@ tasks.register('checkSamples') {
155156
}
156157
dependsOn checkRemote
157158
}
159+
160+
s101 {
161+
configurationDirectory = project.file("etc/s101")
162+
}

etc/s101/config.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<headless version="1.0">
3+
<operations>
4+
<operation type="publish">
5+
<argument name="overwrite" value="true"/>
6+
<argument name="diagrams" value="true"/>
7+
</operation>
8+
<operation type="check-key-measures">
9+
<argument name="baseline" value="baseline"/>
10+
<argument name="useProjectFileSpec" value="true"/>
11+
<argument name="useProjectFileDiagrams" value="true"/>
12+
<argument name="fail-on-architecture-violations" value="false"/>
13+
<argument name="fail-on-fat-package" value="false"/>
14+
<argument name="fail-on-fat-class" value="false"/>
15+
<argument name="fail-on-fat-method" value="false"/>
16+
<argument name="fail-on-feedback-dependencies" value="true"/>
17+
<argument name="fail-on-spec-violation-dependencies" value="false"/>
18+
<argument name="fail-on-total-problem-dependencies" value="false"/>
19+
<argument name="fail-on-spec-item-violations" value="false"/>
20+
<argument name="fail-on-biggest-class-tangle" value="true"/>
21+
<argument name="fail-on-tangled-package" value="true"/>
22+
<argument name="fail-on-architecture-violations" value="false"/>
23+
<argument name="fail-on-total-problem-dependencies" value="true"/>
24+
<argument name="identifier-on-violation" value="S101 key measure violation"/>
25+
</operation>
26+
</operations>
27+
<arguments>
28+
<argument name="local-project" value="const(THIS_FILE)/project.java.hsp"/>
29+
<argument name="repository" value="const(THIS_FILE)/repository"/>
30+
<argument name="project" value="snapshots"/>
31+
</arguments>
32+
</headless>

etc/s101/project.java.hsp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<local-project language="java" version="6.1.19139" xml-version="3" flavor="j2se">
3+
<property name="show-as-module" value="false" />
4+
<property name="publish-architecture-artifacts" value="true" />
5+
<property name="force-classpath" value="false" />
6+
<property name="project-type" value="classpath" />
7+
<property name="hide-externals" value="true" />
8+
<property name="parse-archive-in-archive" value="false" />
9+
<property name="include-injected-dependency" value="false" />
10+
<property name="relative-to" value="const(THIS_FILE)/../.." />
11+
<property name="action-set-mod" value="1" />
12+
<property name="detail-mode" value="true" />
13+
<property name="hide-deprecated" value="false" />
14+
<property name="resolve-name-clashes" value="true" />
15+
<property name="project-excluded" />
16+
<property name="show-needs-to-compile" value="false" />
17+
<classpath>
18+
<classpathentry kind="lib" path="acl/build/classes/java/main" module="spring-security-acl" />
19+
<classpathentry kind="lib" path="aspects/build/classes/aspectj/main" module="spring-security-aspects" />
20+
<classpathentry kind="lib" path="cas/build/classes/java/main" module="spring-security-cas" />
21+
<classpathentry kind="lib" path="config/build/classes/java/main" module="spring-security-config" />
22+
<classpathentry kind="lib" path="config/build/classes/kotlin/main" module="spring-security-config" />
23+
<classpathentry kind="lib" path="core/build/classes/java/main" module="spring-security-core" />
24+
<classpathentry kind="lib" path="crypto/build/classes/java/main" module="spring-security-crypto" />
25+
<classpathentry kind="lib" path="data/build/classes/java/main" module="spring-security-data" />
26+
<classpathentry kind="lib" path="ldap/build/classes/java/main" module="spring-security-ldap" />
27+
<classpathentry kind="lib" path="messaging/build/classes/java/main" module="spring-security-messaging" />
28+
<classpathentry kind="lib" path="oauth2/oauth2-client/build/classes/java/main" module="spring-security-oauth2-client" />
29+
<classpathentry kind="lib" path="oauth2/oauth2-core/build/classes/java/main" module="spring-security-oauth2-core" />
30+
<classpathentry kind="lib" path="oauth2/oauth2-jose/build/classes/java/main" module="spring-security-oauth2-jose" />
31+
<classpathentry kind="lib" path="oauth2/oauth2-resource-server/build/classes/java/main" module="spring-security-oauth2-resource-server" />
32+
<classpathentry kind="lib" path="openid/build/classes/java/main" module="spring-security-openid" />
33+
<classpathentry kind="lib" path="remoting/build/classes/java/main" module="spring-security-remoting" />
34+
<classpathentry kind="lib" path="rsocket/build/classes/java/main" module="spring-security-rsocket" />
35+
<classpathentry kind="lib" path="saml2/saml2-service-provider/build/classes/java/main" module="spring-security-saml2-service-provider" />
36+
<classpathentry kind="lib" path="saml2/saml2-service-provider/build/classes/java/opensaml3Main" module="spring-security-saml2-service-provider" />
37+
<classpathentry kind="lib" path="saml2/saml2-service-provider/build/classes/java/opensaml4Main" module="spring-security-saml2-service-provider" />
38+
<classpathentry kind="lib" path="taglibs/build/classes/java/main" module="spring-security-taglibs" />
39+
<classpathentry kind="lib" path="test/build/classes/java/main" module="spring-security-test" />
40+
<classpathentry kind="lib" path="web/build/classes/java/main" module="spring-security-web" />
41+
</classpath>
42+
<pom-root-files />
43+
<modules-in-scope />
44+
<restructuring>
45+
<set version="3" name="Action list 1" hiview="Codemap" active="true" todo="false" list="0" />
46+
</restructuring>
47+
<grid-set sep="." version="6.1.19139" />
48+
</local-project>

etc/s101/repository/repository.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<structure101-repository language="java" version="19139">
3+
<xs-configuration>
4+
<entry metric="Tangled" scope="design" threshold="0" color="153,53,0" />
5+
<entry metric="Fat" scope="design" threshold="120" color="255,153,0" />
6+
<entry metric="Fat" scope="leaf package" threshold="120" color="0,153,153" />
7+
<entry metric="Fat" scope="class" threshold="120" color="255,153,153" />
8+
<entry metric="Fat" scope="method" threshold="15" color="51,255,51" />
9+
</xs-configuration>
10+
<!--Note: All date strings are stored in short US format e.g. 2/1/06 for 1st Feb 2006-->
11+
<project name="snapshots" dir="snapshots" baselineSnapshot="default" version="19139">
12+
<snapshot label="baseline" location="baseline" timestamp="3/16/21, 4:42 PM" version="19139" detail="true" good="true" size="20" />
13+
</project>
14+
</structure101-repository>

0 commit comments

Comments
 (0)