Skip to content

Commit

Permalink
Added: ClassesYamlStorage ported from Carbon
Browse files Browse the repository at this point in the history
Signed-off-by: DevDrizzy <[email protected]>
  • Loading branch information
DevDrizzy committed Dec 8, 2024
1 parent 4b561d8 commit a62d984
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 8 deletions.
30 changes: 22 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<groupId>xyz.refinedev.api</groupId>
<artifactId>StorageAPI</artifactId>
<version>1.9</version>
<version>2.0</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand All @@ -26,8 +26,8 @@

<distributionManagement>
<repository>
<id>refine-releases</id>
<url>https://maven.refinedev.xyz/repository/maven-releases/</url>
<id>refine-public</id>
<url>https://maven.refinedev.xyz/public-repo/</url>
</repository>
</distributionManagement>

Expand All @@ -40,6 +40,11 @@
<configuration>
<target>${maven.compiler.target}</target>
<source>${maven.compiler.source}</source>
<annotationProcessors>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
</annotationProcessors>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -77,14 +82,16 @@
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<id>attach-sources</id>
<!-- Attach the source JAR in the package phase -->
<phase>package</phase>
<goals>
<goal>deploy</goal>
<goal>jar</goal>
</goals>
</execution>
</executions>
Expand Down Expand Up @@ -118,6 +125,13 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>me.carleslc.Simple-YAML</groupId>
<artifactId>Simple-Yaml</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/xyz/refinedev/api/storage/annotations/Create.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package xyz.refinedev.api.storage.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Create {

boolean lineBreak() default true;
}
12 changes: 12 additions & 0 deletions src/main/java/xyz/refinedev/api/storage/annotations/Ignore.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package xyz.refinedev.api.storage.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface Ignore {

}
Loading

0 comments on commit a62d984

Please sign in to comment.