Skip to content

Commit

Permalink
✨ Added extended annotator
Browse files Browse the repository at this point in the history
  • Loading branch information
lengors committed Aug 15, 2024
1 parent 003501b commit 0969d16
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 73 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<!-- Dependency and plugins versions -->
<maven.central-publishing.version>0.5.0</maven.central-publishing.version>
<maven.checkerframework.version>3.46.0</maven.checkerframework.version>
<maven.jsonschema2pojo.version>1.2.1</maven.jsonschema2pojo.version>
<maven.checkstyle.version>3.4.0</maven.checkstyle.version>
<maven.delombok.version>1.18.20.0</maven.delombok.version>
<maven.compiler.version>3.13.0</maven.compiler.version>
Expand Down Expand Up @@ -73,6 +74,11 @@
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-core</artifactId>
<version>${maven.jsonschema2pojo.version}</version>
</dependency>

<dependency>
<groupId>org.checkerframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package io.github.lengors.js2pets.annotators;

import org.jsonschema2pojo.Annotator;

import com.sun.codemodel.JMethod;

/**
* Annotator for the js2pets plugin.
*/
public interface Js2petsAnnotator extends Annotator {

/**
* Annotate a constructor method.
*
* @param constructor the constructor method to annotate
*/
void constructor(JMethod constructor);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Contains annotators for the plugin.
*/
package io.github.lengors.js2pets.annotators;
28 changes: 0 additions & 28 deletions src/main/java/io/github/lengors/maven_java_template/Example.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 0969d16

Please sign in to comment.