Skip to content

Commit

Permalink
[Release] fix ugly code
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Mar 8, 2023
1 parent 8ff6429 commit 5c1f0de
Show file tree
Hide file tree
Showing 14 changed files with 239 additions and 223 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
46 changes: 46 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ "release" ]
pull_request:
branches: [ "release" ]

env:
VERSION: "1.0"

jobs:
build:
name: Create Build
if: "startsWith(github.event.head_commit.message, '[Release]')"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
cache: maven

- name: Build
run: mvn clean package

- name: Upload Artifact
uses: ncipollo/release-action@v1.10.0
with:
artifacts: ${{ github.workspace }}/target/*.jar
draft: false
name: Release v${{ env.VERSION }}
tag: v${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
body: "The artifacts are kept up to date with the branch release."
commit: ${{ github.sha }}
allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Items ID

> Show the id of the items in your NukkitX server


If you encounter any bugs, have suggestions or questions, [create an issue](https://github.com/Josscoder/ItemsID/issues/new).
Show the id of the items in your Nukkit server

## Setup

Expand All @@ -18,6 +14,10 @@ If you encounter any bugs, have suggestions or questions, [create an issue](http

- /ii help | To see all the commands (there are only 2 for now)

- /ii toggle | This will help you if you want to see the id of the item that you have in your hand all the time, to deactivate it, execute the command again (/ii toggle)

- /ii | the command without subcommand will show you information about the item you have in hand when executing the command
- /ii toggle | This will help you if you want to see the id of the item that you have in your hand all the time, to
deactivate it, execute the command again (/ii toggle)


- /ii | the command without subcommand will show you information about the item you have in hand when executing the
command
Binary file removed lib/lombok.jar
Binary file not shown.
68 changes: 48 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,49 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>jossc.items</groupId>
<artifactId>ItemsID</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.1</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>opencollab-repo-release</id>
<url>https://repo.opencollab.dev/maven-releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>opencollab-repo-snapshot</id>
<url>https://repo.opencollab.dev/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.18</version>
<scope>system</scope>
<systemPath>${basedir}/lib/lombok.jar</systemPath>
<version>1.18.26</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>cn.nukkit</groupId>
Expand All @@ -52,4 +39,45 @@
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
<exclude>META-INF/*</exclude>
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>
43 changes: 0 additions & 43 deletions src/main/java/jossc/items/Main.java

This file was deleted.

74 changes: 0 additions & 74 deletions src/main/java/jossc/items/command/ItemIdCommand.java

This file was deleted.

37 changes: 0 additions & 37 deletions src/main/java/jossc/items/listener/EventListener.java

This file was deleted.

27 changes: 0 additions & 27 deletions src/main/java/jossc/items/storage/SessionsStorage.java

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/jossc/items/utils/Utils.java

This file was deleted.

Loading

0 comments on commit 5c1f0de

Please sign in to comment.