diff --git a/.gitignore b/.gitignore index 88c6d79..1c7c3d1 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ buildNumber.properties ### VisualStudioCode ### .vscode/* +.claude/ diff --git a/README.adoc b/README.adoc index 688ebcc..5c0b269 100644 --- a/README.adoc +++ b/README.adoc @@ -1,7 +1,7 @@ -image:https://img.shields.io/github/commit-activity/m/Luftfartsverket/reqstool-java-annotations?label=commits&style=for-the-badge["Commit Activity", link="https://github.com/Luftfartsverket/reqstool-java-annotations/pulse"] -image:https://img.shields.io/github/issues/Luftfartsverket/reqstool-java-annotations?style=for-the-badge&logo=github["GitHub Issues", link="https://github.com/Luftfartsverket/reqstool-java-annotations/issues"] +image:https://img.shields.io/github/commit-activity/m/reqstool/reqstool-java-annotations?label=commits&style=for-the-badge["Commit Activity", link="https://github.com/reqstool/reqstool-java-annotations/pulse"] +image:https://img.shields.io/github/issues/reqstool/reqstool-java-annotations?style=for-the-badge&logo=github["GitHub Issues", link="https://github.com/reqstool/reqstool-java-annotations/issues"] image:https://img.shields.io/badge/Java-21-brightgreen.svg?style=for-the-badge["JVM support", link="https://sdkman.io"] -image:https://img.shields.io/github/license/Luftfartsverket/reqstool-java-annotations?style=for-the-badge&logo=opensourceinitiative["License", link="https://opensource.org/license/mit/"] -image:https://img.shields.io/github/actions/workflow/status/Luftfartsverket/reqstool-java-annotations/build.yml?style=for-the-badge&logo=github["Build", link="https://github.com/Luftfartsverket/reqstool-java-annotations/actions/workflows/build.yml"] -image:https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs["Static Badge", link="https://luftfartsverket.github.io/reqstool-java-annotations/reqstool-java-annotations/0.0.1/index.html"] +image:https://img.shields.io/github/license/reqstool/reqstool-java-annotations?style=for-the-badge&logo=opensourceinitiative["License", link="https://opensource.org/license/mit/"] +image:https://img.shields.io/github/actions/workflow/status/reqstool/reqstool-java-annotations/build.yml?style=for-the-badge&logo=github["Build", link="https://github.com/reqstool/reqstool-java-annotations/actions/workflows/build.yml"] +image:https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs["Static Badge", link="https://reqstool.github.io/reqstool-java-annotations/reqstool-java-annotations/0.1.0/index.html"] diff --git a/docs/antora-playbook.yml b/docs/antora-playbook.yml index 5af01da..276d341 100644 --- a/docs/antora-playbook.yml +++ b/docs/antora-playbook.yml @@ -2,7 +2,7 @@ site: title: Reqstool Java Annotations Documentation - url: https://github.com/luftfartsverket/reqstool-java-annotations + url: https://github.com/reqstool/reqstool-java-annotations start_page: reqstool-java-annotations::index.adoc content: diff --git a/docs/antora.yml b/docs/antora.yml index 09e25e5..cd195cb 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -2,6 +2,6 @@ name: reqstool-java-annotations title: Reqstool Java Annotations -version: 0.0.1 +version: 0.1.0 nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/installation.adoc b/docs/modules/ROOT/pages/installation.adoc index 38a3512..4dac50b 100644 --- a/docs/modules/ROOT/pages/installation.adoc +++ b/docs/modules/ROOT/pages/installation.adoc @@ -5,9 +5,9 @@ To add dependency using Maven, add the following to your `pom.xml`: [source,xml] ---- - se.lfv.reqstool - reqstool-annotations-java - 0.0.6 + io.github.reqstool + reqstool-java-annotations + 0.1.0 ---- diff --git a/pom.xml b/pom.xml index 3674a27..3d87bff 100644 --- a/pom.xml +++ b/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - se.lfv.reqstool + io.github.reqstool reqstool-java-annotations - 0.1.5 + 0.1.0 jar ${project.artifactId} Requirements Tools - Java Annotations - https://github.com/Luftfartsverket/reqstool-java-annotations + https://github.com/reqstool/reqstool-java-annotations @@ -22,24 +22,23 @@ - LFV System Development Team - sysdev@lfv.se - Luftfartsverket - http://www.lfv.se + Reqstool Contributors + reqstool + https://github.com/reqstool - scm:git:https://github.com/Luftfartsverket/reqstool-java-annotations.git - https://github.com/Luftfartsverket/reqstool-java-annotations + scm:git:https://github.com/reqstool/reqstool-java-annotations.git + https://github.com/reqstool/reqstool-java-annotations Github - https://github.com/Luftfartsverket/reqstool-java-annotations/issues + https://github.com/reqstool/reqstool-java-annotations/issues Github - https://github.com/Luftfartsverket/reqstool-java-annotations/actions + https://github.com/reqstool/reqstool-java-annotations/actions diff --git a/src/main/java/se/lfv/reqstool/annotations/Requirements.java b/src/main/java/io/github/reqstool/annotations/Requirements.java similarity index 92% rename from src/main/java/se/lfv/reqstool/annotations/Requirements.java rename to src/main/java/io/github/reqstool/annotations/Requirements.java index 2011218..574f265 100644 --- a/src/main/java/se/lfv/reqstool/annotations/Requirements.java +++ b/src/main/java/io/github/reqstool/annotations/Requirements.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; import java.lang.annotation.Documented; diff --git a/src/main/java/se/lfv/reqstool/annotations/SVCs.java b/src/main/java/io/github/reqstool/annotations/SVCs.java similarity index 91% rename from src/main/java/se/lfv/reqstool/annotations/SVCs.java rename to src/main/java/io/github/reqstool/annotations/SVCs.java index 412a623..fd9db6f 100644 --- a/src/main/java/se/lfv/reqstool/annotations/SVCs.java +++ b/src/main/java/io/github/reqstool/annotations/SVCs.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; diff --git a/src/main/java/se/lfv/reqstool/processor/AbstractAnnotationsProcessor.java b/src/main/java/io/github/reqstool/processor/AbstractAnnotationsProcessor.java similarity index 95% rename from src/main/java/se/lfv/reqstool/processor/AbstractAnnotationsProcessor.java rename to src/main/java/io/github/reqstool/processor/AbstractAnnotationsProcessor.java index dda5d39..fc88561 100644 --- a/src/main/java/se/lfv/reqstool/processor/AbstractAnnotationsProcessor.java +++ b/src/main/java/io/github/reqstool/processor/AbstractAnnotationsProcessor.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.processor; +package io.github.reqstool.processor; import java.io.IOException; import java.io.OutputStreamWriter; @@ -45,7 +45,7 @@ public String getYmlElementKey() { } - private static final String YAML_LANG_SERVER_SCHEMA_INFO = "# yaml-language-server: $schema=https://raw.githubusercontent.com/Luftfartsverket/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json"; + private static final String YAML_LANG_SERVER_SCHEMA_INFO = "# yaml-language-server: $schema=https://raw.githubusercontent.com/reqstool/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json"; private AnnotationTypes annotationTypes; diff --git a/src/main/java/se/lfv/reqstool/processor/AnnotationInfo.java b/src/main/java/io/github/reqstool/processor/AnnotationInfo.java similarity index 90% rename from src/main/java/se/lfv/reqstool/processor/AnnotationInfo.java rename to src/main/java/io/github/reqstool/processor/AnnotationInfo.java index 61dfcca..9c4f9a8 100644 --- a/src/main/java/se/lfv/reqstool/processor/AnnotationInfo.java +++ b/src/main/java/io/github/reqstool/processor/AnnotationInfo.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.processor; +package io.github.reqstool.processor; import javax.lang.model.element.ElementKind; diff --git a/src/main/java/se/lfv/reqstool/processor/RequirementsProcessor.java b/src/main/java/io/github/reqstool/processor/RequirementsProcessor.java similarity index 81% rename from src/main/java/se/lfv/reqstool/processor/RequirementsProcessor.java rename to src/main/java/io/github/reqstool/processor/RequirementsProcessor.java index a8c292a..d102cf1 100644 --- a/src/main/java/se/lfv/reqstool/processor/RequirementsProcessor.java +++ b/src/main/java/io/github/reqstool/processor/RequirementsProcessor.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.processor; +package io.github.reqstool.processor; import java.util.Arrays; import java.util.Collections; @@ -8,9 +8,9 @@ import javax.annotation.processing.SupportedAnnotationTypes; import javax.lang.model.element.Element; import com.google.auto.service.AutoService; -import se.lfv.reqstool.annotations.Requirements; +import io.github.reqstool.annotations.Requirements; -@SupportedAnnotationTypes("se.lfv.reqstool.annotations.Requirements") +@SupportedAnnotationTypes("io.github.reqstool.annotations.Requirements") @AutoService(Processor.class) public class RequirementsProcessor extends AbstractAnnotationsProcessor { diff --git a/src/main/java/se/lfv/reqstool/processor/SVCsProcessor.java b/src/main/java/io/github/reqstool/processor/SVCsProcessor.java similarity index 81% rename from src/main/java/se/lfv/reqstool/processor/SVCsProcessor.java rename to src/main/java/io/github/reqstool/processor/SVCsProcessor.java index 56d0c37..e639762 100644 --- a/src/main/java/se/lfv/reqstool/processor/SVCsProcessor.java +++ b/src/main/java/io/github/reqstool/processor/SVCsProcessor.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.processor; +package io.github.reqstool.processor; import java.util.Arrays; import java.util.Collections; @@ -8,9 +8,9 @@ import javax.annotation.processing.SupportedAnnotationTypes; import javax.lang.model.element.Element; import com.google.auto.service.AutoService; -import se.lfv.reqstool.annotations.SVCs; +import io.github.reqstool.annotations.SVCs; -@SupportedAnnotationTypes("se.lfv.reqstool.annotations.SVCs") +@SupportedAnnotationTypes("io.github.reqstool.annotations.SVCs") @AutoService(Processor.class) public class SVCsProcessor extends AbstractAnnotationsProcessor { diff --git a/src/test/java/se/lfv/reqstool/annotations/RequirementsTests.java b/src/test/java/io/github/reqstool/annotations/RequirementsTests.java similarity index 95% rename from src/test/java/se/lfv/reqstool/annotations/RequirementsTests.java rename to src/test/java/io/github/reqstool/annotations/RequirementsTests.java index 736cb49..4b4e983 100644 --- a/src/test/java/se/lfv/reqstool/annotations/RequirementsTests.java +++ b/src/test/java/io/github/reqstool/annotations/RequirementsTests.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/se/lfv/reqstool/annotations/SVCsTests.java b/src/test/java/io/github/reqstool/annotations/SVCsTests.java similarity index 95% rename from src/test/java/se/lfv/reqstool/annotations/SVCsTests.java rename to src/test/java/io/github/reqstool/annotations/SVCsTests.java index 7fc07ff..e484729 100644 --- a/src/test/java/se/lfv/reqstool/annotations/SVCsTests.java +++ b/src/test/java/io/github/reqstool/annotations/SVCsTests.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/se/lfv/reqstool/processor/AnnotationsProcessorTests.java b/src/test/java/io/github/reqstool/processor/AnnotationsProcessorTests.java similarity index 98% rename from src/test/java/se/lfv/reqstool/processor/AnnotationsProcessorTests.java rename to src/test/java/io/github/reqstool/processor/AnnotationsProcessorTests.java index 8daa79f..1c8d7a0 100644 --- a/src/test/java/se/lfv/reqstool/processor/AnnotationsProcessorTests.java +++ b/src/test/java/io/github/reqstool/processor/AnnotationsProcessorTests.java @@ -1,5 +1,5 @@ // Copyright © LFV -package se.lfv.reqstool.processor; +package io.github.reqstool.processor; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/resources/java/RequirementsExample.java b/src/test/resources/java/RequirementsExample.java index 134d4e5..e47f8bb 100644 --- a/src/test/resources/java/RequirementsExample.java +++ b/src/test/resources/java/RequirementsExample.java @@ -1,7 +1,7 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; -import se.lfv.reqstool.annotations.Requirements; +import io.github.reqstool.annotations.Requirements; @Requirements({ "REQ_001", "REQ_002", "REQ_003" }) public class RequirementsExample { diff --git a/src/test/resources/java/SVCsExample.java b/src/test/resources/java/SVCsExample.java index c804f94..8a5da8e 100644 --- a/src/test/resources/java/SVCsExample.java +++ b/src/test/resources/java/SVCsExample.java @@ -1,7 +1,7 @@ // Copyright © LFV -package se.lfv.reqstool.annotations; +package io.github.reqstool.annotations; -import se.lfv.reqstool.annotations.SVCs; +import io.github.reqstool.annotations.SVCs; @SVCs({ "SVC_001", "SVC_002", "SVC_003" }) public class SVCsExample { diff --git a/src/test/resources/yml/requirements_annotations.yml b/src/test/resources/yml/requirements_annotations.yml index 8c250f5..70de55c 100644 --- a/src/test/resources/yml/requirements_annotations.yml +++ b/src/test/resources/yml/requirements_annotations.yml @@ -1,18 +1,18 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Luftfartsverket/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json +# yaml-language-server: $schema=https://raw.githubusercontent.com/reqstool/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json --- requirement_annotations: implementations: REQ_001: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.RequirementsExample" + fullyQualifiedName: "io.github.reqstool.annotations.RequirementsExample" REQ_002: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.RequirementsExample" + fullyQualifiedName: "io.github.reqstool.annotations.RequirementsExample" REQ_003: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.RequirementsExample" + fullyQualifiedName: "io.github.reqstool.annotations.RequirementsExample" - elementKind: "METHOD" - fullyQualifiedName: "se.lfv.reqstool.annotations.RequirementsExample.someMethod1" + fullyQualifiedName: "io.github.reqstool.annotations.RequirementsExample.someMethod1" REQ_004: - elementKind: "FIELD" - fullyQualifiedName: "se.lfv.reqstool.annotations.RequirementsExample.field" + fullyQualifiedName: "io.github.reqstool.annotations.RequirementsExample.field" diff --git a/src/test/resources/yml/svcs_annotations.yml b/src/test/resources/yml/svcs_annotations.yml index a953532..e102df6 100644 --- a/src/test/resources/yml/svcs_annotations.yml +++ b/src/test/resources/yml/svcs_annotations.yml @@ -1,15 +1,15 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Luftfartsverket/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json +# yaml-language-server: $schema=https://raw.githubusercontent.com/reqstool/reqstool-client/main/src/reqstool/resources/schemas/v1/annotations.schema.json --- requirement_annotations: tests: SVC_001: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.SVCsExample" + fullyQualifiedName: "io.github.reqstool.annotations.SVCsExample" SVC_002: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.SVCsExample" + fullyQualifiedName: "io.github.reqstool.annotations.SVCsExample" SVC_003: - elementKind: "CLASS" - fullyQualifiedName: "se.lfv.reqstool.annotations.SVCsExample" + fullyQualifiedName: "io.github.reqstool.annotations.SVCsExample" - elementKind: "METHOD" - fullyQualifiedName: "se.lfv.reqstool.annotations.SVCsExample.someMethod" + fullyQualifiedName: "io.github.reqstool.annotations.SVCsExample.someMethod"