Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ buildNumber.properties
### VisualStudioCode ###
.vscode/*

.claude/
10 changes: 5 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion docs/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ To add dependency using Maven, add the following to your `pom.xml`:
[source,xml]
----
<dependency>
<groupId>se.lfv.reqstool</groupId>
<artifactId>reqstool-annotations-java</artifactId>
<version>0.0.6</version>
<groupId>io.github.reqstool</groupId>
<artifactId>reqstool-java-annotations</artifactId>
<version>0.1.0</version>
</dependency>
----

21 changes: 10 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>se.lfv.reqstool</groupId>
<groupId>io.github.reqstool</groupId>
<artifactId>reqstool-java-annotations</artifactId>
<version>0.1.5</version>
<version>0.1.0</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
<description>Requirements Tools - Java Annotations</description>
<url>https://github.com/Luftfartsverket/reqstool-java-annotations</url>
<url>https://github.com/reqstool/reqstool-java-annotations</url>

<licenses>
<license>
Expand All @@ -22,24 +22,23 @@

<developers>
<developer>
<name>LFV System Development Team</name>
<email>sysdev@lfv.se</email>
<organization>Luftfartsverket</organization>
<organizationUrl>http://www.lfv.se</organizationUrl>
<name>Reqstool Contributors</name>
<organization>reqstool</organization>
<organizationUrl>https://github.com/reqstool</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:https://github.com/Luftfartsverket/reqstool-java-annotations.git</connection>
<url>https://github.com/Luftfartsverket/reqstool-java-annotations</url>
<connection>scm:git:https://github.com/reqstool/reqstool-java-annotations.git</connection>
<url>https://github.com/reqstool/reqstool-java-annotations</url>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/Luftfartsverket/reqstool-java-annotations/issues</url>
<url>https://github.com/reqstool/reqstool-java-annotations/issues</url>
</issueManagement>
<ciManagement>
<system>Github</system>
<url>https://github.com/Luftfartsverket/reqstool-java-annotations/actions</url>
<url>https://github.com/reqstool/reqstool-java-annotations/actions</url>
</ciManagement>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright © LFV
package se.lfv.reqstool.annotations;
package io.github.reqstool.annotations;

import java.lang.annotation.Documented;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright © LFV
package se.lfv.reqstool.processor;
package io.github.reqstool.processor;

import java.io.IOException;
import java.io.OutputStreamWriter;
Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright © LFV
package se.lfv.reqstool.processor;
package io.github.reqstool.processor;

import javax.lang.model.element.ElementKind;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright © LFV
package se.lfv.reqstool.processor;
package io.github.reqstool.processor;

import java.util.Arrays;
import java.util.Collections;
Expand All @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright © LFV
package se.lfv.reqstool.processor;
package io.github.reqstool.processor;

import java.util.Arrays;
import java.util.Collections;
Expand All @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/java/RequirementsExample.java
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/java/SVCsExample.java
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/yml/requirements_annotations.yml
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 5 additions & 5 deletions src/test/resources/yml/svcs_annotations.yml
Original file line number Diff line number Diff line change
@@ -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"