Skip to content

Commit

Permalink
Prepare distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Oct 15, 2023
1 parent efa25e4 commit c00f4ee
Show file tree
Hide file tree
Showing 35 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Publish Snapshot
if: ${{ runner.os == 'Linux' && env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ runner.os == 'Linux' && env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/cloud-beta' }}
run: ./gradlew publishToSonatype
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-release-assets-.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Upload release assets
on:
release:
types: [published]
types: [published, prereleased]
jobs:
upload_asset:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,6 +41,6 @@ jobs:
game_endpoint: minecraft
token: ${{ secrets.CURSEFORGE_TOKEN }}
display_name: FastAsyncVoxelSniper ${{ github.event.release.tag_name }}
release_type: release
release_type: beta
changelog: "Click here to view changelog: https://github.com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${{ github.event.release.tag_name }}"
changelog_type: markdown
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ configurations.all {
}

group = "com.intellectualsites.fastasyncvoxelsniper"
version = "2.9.5-SNAPSHOT"
version = "3.0.0-SNAPSHOT"

bukkit {
name = "FastAsyncVoxelSniper"
Expand Down Expand Up @@ -205,7 +205,7 @@ modrinth {
projectId.set("fastasyncvoxelsniper")
versionName.set("${project.version}")
versionNumber.set("${project.version}")
versionType.set("release")
versionType.set("beta") // TODO Change after 3.x release
uploadFile.set(file("build/libs/${rootProject.name}-${project.version}.jar"))
gameVersions.addAll(supportedVersions)
loaders.addAll(listOf("paper", "purpur", "spigot"))
Expand All @@ -221,7 +221,7 @@ hangarPublish {
publications.register("plugin") {
version.set(project.version as String)
id.set("FastAsyncVoxelSniper")
channel.set("Release")
channel.set("Prerelease") // TODO Change after 3.x release
changelog.set("The changelog is available on GitHub: https://github" +
".com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${project.version}")
apiKey.set(System.getenv("HANGAR_TOKEN"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public CommandRegistrar(VoxelSniperPlugin plugin, CommandRegistry registry) {
/**
* Register the suggestions and parsers into the command manager.
*
* @since TODO
* @since 3.0.0
*/
public void registerSuggestionsAndParsers() {
registerBiomeTypeArgument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public PatternParser getPatternParser() {
* Return the command manager.
*
* @return the command manager
* @since TODO
* @since 3.0.0
*/
public CommandRegistry getCommandRegistry() {
return this.commandRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void register(BrushProperties properties) {
* Return the unique brushes properties.
*
* @return the unique brushes properties
* @since TODO
* @since 3.0.0
*/
public Set<BrushProperties> getUniqueBrushesProperties() {
return uniqueBrushesProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ public interface PerformerBrush extends Brush {
* Return the performer.
*
* @return the performer
* @since TODO
* @since 3.0.0
*/
Performer getPerformer();

/**
* Set the performer.
*
* @param performer the performer
* @since TODO
* @since 3.0.0
*/
void setPerformer(Performer performer);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public CommandRegistry(VoxelSniperPlugin plugin) {
* Initialize the command registry.
*
* @throws Exception initialization exception
* @since TODO
* @since 3.0.0
*/
public void initialize() throws Exception {
this.commandManager = createCommandManager();
Expand Down Expand Up @@ -418,7 +418,7 @@ private void postprocessPerformer(
* Register the elements from a voxel command element into the command manager.
*
* @param voxelCommandElement the voxel command element
* @since TODO
* @since 3.0.0
*/
public void register(VoxelCommandElement voxelCommandElement) {
annotationParser.parse(voxelCommandElement);
Expand All @@ -428,7 +428,7 @@ public void register(VoxelCommandElement voxelCommandElement) {
* Return the command manager.
*
* @return the command manager
* @since TODO
* @since 3.0.0
*/
public BukkitCommandManager<SniperCommander> getCommandManager() {
return commandManager;
Expand All @@ -438,7 +438,7 @@ public BukkitCommandManager<SniperCommander> getCommandManager() {
* Return the annotation parser.
*
* @return the annotation parser
* @since TODO
* @since 3.0.0
*/
public AnnotationParser<SniperCommander> getAnnotationParser() {
return annotationParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class VoxelMethodCommandExecutionHandler<C> extends MethodCommandExecutio
*
* @param context the context
* @throws Exception instantiation exception
* @since TODO
* @since 3.0.0
*/
public VoxelMethodCommandExecutionHandler(
CommandMethodContext<C> context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract class AbstractFileArgument implements VoxelCommandElement {
* @param plugin the plugin
* @param rootPath the root path
* @param extension the extension
* @since TODO
* @since 3.0.0
*/
public AbstractFileArgument(VoxelSniperPlugin plugin, Path rootPath, String extension) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class AbstractPatternArgument<T extends Pattern> implements Voxe
* @param plugin the plugin
* @param factory the factory
* @param parseExceptionCaptionKey the parse exception caption key
* @since TODO
* @since 3.0.0
*/
public AbstractPatternArgument(VoxelSniperPlugin plugin, AbstractFactory<T> factory, String parseExceptionCaptionKey) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class AbstractRegistryArgument<T extends Keyed> implements Voxel
* @param plugin the plugin
* @param registry the registry
* @param parseExceptionCaptionKey the parse exception caption key
* @since TODO
* @since 3.0.0
*/
public AbstractRegistryArgument(VoxelSniperPlugin plugin, NamespacedRegistry<T> registry, String parseExceptionCaptionKey) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BiomeTypeArgument extends AbstractRegistryArgument<BiomeType> {
* Create a biome type argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public BiomeTypeArgument(VoxelSniperPlugin plugin) {
super(plugin, BiomeType.REGISTRY, "voxelsniper.command.invalid-biome");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BlockArgument extends AbstractPatternArgument<BaseBlock> {
* Create a block argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public BlockArgument(VoxelSniperPlugin plugin) {
super(plugin, WorldEdit.getInstance().getBlockFactory(), "voxelsniper.command.invalid-block");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BlockTypeArgument extends AbstractRegistryArgument<BlockType> {
* Create a block type argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public BlockTypeArgument(VoxelSniperPlugin plugin) {
super(plugin, BlockType.REGISTRY, "voxelsniper.command.invalid-block-type");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class BrushPropertiesArgument implements VoxelCommandElement {
* Create a brush properties argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public BrushPropertiesArgument(VoxelSniperPlugin plugin) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static List<Class<?>> getEntityClassHierarchy(Class<? extends Entity> ent
* Create a toolkit argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public EntityClassArgument(VoxelSniperPlugin plugin) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class EntityTypeArgument extends AbstractRegistryArgument<EntityType> {
* Create an entity type argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public EntityTypeArgument(VoxelSniperPlugin plugin) {
super(plugin, EntityType.REGISTRY, "voxelsniper.command.invalid-entity");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class PatternArgument extends AbstractPatternArgument<Pattern> {
* Create a pattern argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public PatternArgument(VoxelSniperPlugin plugin) {
super(plugin, plugin.getPatternParser(), "voxelsniper.command.invalid-pattern");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SignFileArgument extends AbstractFileArgument {
* Create a sign file argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public SignFileArgument(VoxelSniperPlugin plugin) {
super(plugin, plugin.getDataFolder().toPath().resolve("signs/"), ".vsign");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StencilFileArgument extends AbstractFileArgument {
* Create a stencil file argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public StencilFileArgument(VoxelSniperPlugin plugin) {
super(plugin, plugin.getDataFolder().toPath().resolve("stencils/"), ".vstencil");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StencilListFileArgument extends AbstractFileArgument {
* Create a stencil file argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public StencilListFileArgument(VoxelSniperPlugin plugin) {
super(plugin, plugin.getDataFolder().toPath().resolve("stencilLists/"), ".txt");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ToolkitArgument implements VoxelCommandElement {
* Create a toolkit argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public ToolkitArgument(VoxelSniperPlugin plugin) {
this.plugin = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class VoxelCommandElementParseException extends IllegalArgumentException
*
* @param input the input
* @param errorMessage the error message
* @since TODO
* @since 3.0.0
*/
public VoxelCommandElementParseException(String input, Component errorMessage) {
this.input = input;
Expand All @@ -28,7 +28,7 @@ public VoxelCommandElementParseException(String input, Component errorMessage) {
* Return the input.
*
* @return the input
* @since TODO
* @since 3.0.0
*/
public String getInput() {
return input;
Expand All @@ -38,7 +38,7 @@ public String getInput() {
* Return the error message.
*
* @return the error message
* @since TODO
* @since 3.0.0
*/
public Component getErrorMessage() {
return errorMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class VoxelListBlocksArgument implements VoxelCommandElement {
* Create a voxel list blocks argument.
*
* @param plugin the plugin
* @since TODO
* @since 3.0.0
*/
public VoxelListBlocksArgument(VoxelSniperPlugin plugin) {
this.plugin = plugin;
Expand Down Expand Up @@ -82,7 +82,7 @@ public BlockWrapper[] parseVoxelListBlock(CommandContext<SniperCommander> comman
*
* @param block the block
* @param remove whether the block should be removed or not
* @since TODO
* @since 3.0.0
*/
public record BlockWrapper(BlockState block, boolean remove) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Used to specify min and max field values of numerical.
*
* @since TODO
* @since 3.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
Expand All @@ -20,15 +20,15 @@
* Return the minimum field value accepted by the parser.
*
* @return minimum field value
* @since TODO
* @since 3.0.0
*/
@NonNull String min() default "";

/**
* Return the maximum field value accepted by the parser.
*
* @return maximum field value
* @since TODO
* @since 3.0.0
*/
@NonNull String max() default "";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Used to specify toolkit requirement.
*
* @since TODO
* @since 3.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void register(PerformerProperties properties) {
* Return the unique performer properties.
*
* @return the unique performer properties
* @since TODO
* @since 3.0.0
*/
public Set<PerformerProperties> getUniquePerformerProperties() {
return uniquePerformerProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Sniper(UUID uuid) {
* Create a sniper from a player.
*
* @param player the player
* @since TODO
* @since 3.0.0
*/
public Sniper(Player player) {
this.uuid = player.getUniqueId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ public interface SniperCommander {
* Return the command sender
*
* @return the command sender
* @since TODO
* @since 3.0.0
*/
CommandSender getCommandSender();

/**
* Create a parser context from the sniper commander.
*
* @return the parser context
* @since TODO
* @since 3.0.0
*/
default ParserContext createParserContext() {
CommandSender sender = getCommandSender();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void unregister(Sniper sniper) {
*
* @param commandSender the command sender
* @return the sniper commander
* @since TODO
* @since 3.0.0
*/
public SniperCommander getSniperCommander(CommandSender commandSender) {
return commandSender instanceof Player player
Expand Down

0 comments on commit c00f4ee

Please sign in to comment.