Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 5bccaec

Browse files
committed
Update: New methods added (Not tested).
1 parent 5653d64 commit 5bccaec

25 files changed

+846
-300
lines changed

.github/workflows/maven.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
17+
- name: Auto Increment Semver Action
18+
uses: MCKanpolat/auto-semver-action@v1
19+
id: versioning
20+
with:
21+
releaseType: patch
22+
incrementPerCommit: true
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Next Release Number
26+
run: echo ${{ steps.versioning.outputs.version }}
27+
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: ${{ steps.versioning.outputs.version }}
35+
release_name: Release ${{ steps.versioning.outputs.version }}
36+
body: |
37+
Automatically created release by GitHub Actions
38+
draft: false
39+
prerelease: false
40+
41+
outputs:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }}
43+
version: ${{ steps.versioning.outputs.version }}
44+
45+
46+
build:
47+
name: Build and Upload
48+
needs: release
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v2
54+
55+
- name: Set up JDK 17
56+
uses: actions/setup-java@v3
57+
with:
58+
java-version: '17'
59+
distribution: 'temurin'
60+
cache: maven
61+
62+
- name: Build with Maven
63+
run: mvn -B package --file pom.xml -DskipTests --no-transfer-progress
64+
65+
- name: Get jar file
66+
id: set_output_path
67+
run: |
68+
echo "path=$(ls target | grep .jar)" >> $GITHUB_OUTPUT
69+
70+
- name: Upload jar file
71+
uses: actions/upload-release-asset@v1
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
with:
75+
upload_url: ${{ steps.create_release.outputs.upload_url }}
76+
asset_path: ./target/${{ steps.set_output_path.outputs.path }}
77+
asset_name: ${{ steps.set_output_path.outputs.path }}
78+
asset_content_type: application/java-archive

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
*.jar
3+
target/

build

Lines changed: 0 additions & 8 deletions
This file was deleted.

pom.xml

Lines changed: 74 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,90 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
3+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>ir.xenoncommunity</groupId>
8-
<artifactId>XenonTools</artifactId>
9-
<version>0.1</version>
7+
<groupId>ir.xenoncommunity</groupId>
8+
<artifactId>XenonTools</artifactId>
9+
<version>0.2-SNAPSHOT</version>
1010

11-
<properties>
12-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
<maven.compiler.source>8</maven.compiler.source>
14-
<maven.compiler.target>8</maven.compiler.target>
15-
</properties>
16-
<repositories>
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>8</maven.compiler.target>
15+
<exec.mainClass>ir.xenoncommunity.xenontools.Main</exec.mainClass>
16+
</properties>
17+
18+
<repositories>
1719
<repository>
1820
<id>jitpack.io</id>
1921
<url>https://jitpack.io</url>
2022
</repository>
21-
<repository>
22-
<id>litarvan</id>
23-
<url>https://litarvan.github.io/maven</url>
24-
</repository>
23+
2524
</repositories>
25+
26+
2627
<dependencies>
2728
<dependency>
2829
<groupId>org.jetbrains</groupId>
2930
<artifactId>annotations</artifactId>
3031
<version>24.1.0</version>
32+
<scope>provided</scope>
3133
</dependency>
32-
<dependency>
33-
<groupId>org.projectlombok</groupId>
34-
<artifactId>lombok</artifactId>
35-
<version>RELEASE</version>
36-
</dependency>
37-
</dependencies>
38-
<build>
39-
<pluginManagement>
40-
<plugins>
41-
<plugin>
42-
<artifactId>maven-clean-plugin</artifactId>
43-
<version>3.1.0</version>
44-
</plugin>
45-
<plugin>
46-
<artifactId>maven-resources-plugin</artifactId>
47-
<version>3.0.2</version>
48-
</plugin>
49-
<plugin>
50-
<artifactId>maven-compiler-plugin</artifactId>
51-
<version>3.8.0</version>
52-
</plugin>
53-
<plugin>
54-
<artifactId>maven-surefire-plugin</artifactId>
55-
<version>2.22.1</version>
56-
</plugin>
57-
<plugin>
58-
<artifactId>maven-jar-plugin</artifactId>
59-
<version>3.0.2</version>
60-
</plugin>
61-
<plugin>
62-
<artifactId>maven-install-plugin</artifactId>
63-
<version>2.5.2</version>
64-
</plugin>
65-
<plugin>
66-
<artifactId>maven-deploy-plugin</artifactId>
67-
<version>2.8.2</version>
68-
</plugin>
69-
<plugin>
70-
<artifactId>maven-site-plugin</artifactId>
71-
<version>3.7.1</version>
72-
</plugin>
73-
<plugin>
74-
<artifactId>maven-project-info-reports-plugin</artifactId>
75-
<version>3.0.0</version>
76-
</plugin>
77-
</plugins>
78-
</pluginManagement>
79-
</build>
34+
<dependency>
35+
<groupId>org.projectlombok</groupId>
36+
<artifactId>lombok</artifactId>
37+
<version>1.18.30</version>
38+
<scope>provided</scope>
39+
</dependency>
40+
41+
</dependencies>
42+
43+
<build>
44+
<pluginManagement>
45+
<plugins>
46+
<plugin>
47+
<artifactId>maven-jar-plugin</artifactId>
48+
<version>3.0.2</version>
49+
<configuration>
50+
<archive>
51+
<manifest>
52+
<mainClass>ir.xenoncommunity.xenontools.Main</mainClass>
53+
</manifest>
54+
</archive>
55+
</configuration>
56+
</plugin>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-compiler-plugin</artifactId>
60+
<version>3.11.0</version>
61+
<configuration>
62+
<annotationProcessorPaths>
63+
<path>
64+
<groupId>org.projectlombok</groupId>
65+
<artifactId>lombok</artifactId>
66+
<version>1.18.30</version>
67+
</path>
68+
<path>
69+
<groupId>org.jetbrains</groupId>
70+
<artifactId>annotations</artifactId>
71+
<version>24.1.0</version>
72+
</path>
73+
</annotationProcessorPaths>
74+
</configuration>
75+
</plugin>
76+
</plugins>
77+
</pluginManagement>
78+
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-compiler-plugin</artifactId>
83+
<configuration>
84+
<source>14</source>
85+
<target>14</target>
86+
</configuration>
87+
</plugin>
88+
</plugins>
89+
</build>
8090
</project>

src/main/java/ir/xenoncommunity/Main.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/main/java/ir/xenoncommunity/MainRunner.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)