Skip to content

Commit

Permalink
added sources jar,
Browse files Browse the repository at this point in the history
made multi target annotation public
  • Loading branch information
Pesekjak committed May 1, 2024
1 parent 8198115 commit 980bc61
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withSourcesJar()
}

tasks {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Group and version
group = me.pesekjak.vitrum
version = 1.1.0
version = 1.1.1

# Dependency versions
jetbrainsAnnotations = 24.1.0
Expand Down
15 changes: 14 additions & 1 deletion vitrum/src/main/java/me/pesekjak/vitrum/MultiTarget.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
package me.pesekjak.vitrum;

import org.jetbrains.annotations.ApiStatus;

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

/**
* Annotation used to define multiple targets.
* <p>
* Use repeatedly {@link Target} instead.
*/
@ApiStatus.Internal
@Retention(RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(ElementType.METHOD)
@interface MultiTarget {
public @interface MultiTarget {

/**
* Targets.
*
* @return targets
*/
Target[] value();

}

0 comments on commit 980bc61

Please sign in to comment.