File tree Expand file tree Collapse file tree 9 files changed +34
-34
lines changed
src/main/kotlin/com/mineinabyss/guiy/example
src/main/kotlin/com/mineinabyss/guiy Expand file tree Collapse file tree 9 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 8
8
- ' **.md'
9
9
pull_request :
10
10
11
+ concurrency :
12
+ cancel-in-progress : true
13
+ group : ci-${{ github.ref }}
14
+
11
15
jobs :
12
16
build :
13
17
runs-on : ubuntu-latest
14
18
steps :
15
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v3
16
20
17
21
- name : Set up JDK
18
- uses : actions/setup-java@v2
22
+ uses : actions/setup-java@v3
19
23
with :
20
24
distribution : temurin
21
25
java-version : 17
22
26
cache : gradle
23
27
24
28
- name : Build
25
29
run : gradle build
26
-
27
- - name : Upload build
28
- uses : actions/upload-artifact@v1
29
- with :
30
- name : build
31
- path : build/libs
Original file line number Diff line number Diff line change @@ -12,20 +12,26 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v3
16
16
17
17
- name : Set up JDK
18
- uses : actions/setup-java@v2
18
+ uses : actions/setup-java@v3
19
19
with :
20
20
distribution : temurin
21
21
java-version : 17
22
22
cache : gradle
23
23
24
- - name : Run gradle build and publish
25
- run : gradle build publish -PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}
24
+ - name : Set env variable from latest maven version
25
+ run : >
26
+ echo "RELEASE_VERSION=$( \
27
+ curl https://repo.mineinabyss.com/releases/com/mineinabyss/guiy-compose/maven-metadata.xml | \
28
+ grep -oP '(?!<latest>)[\d\.]*(?=</latest>)' \
29
+ )" >> $GITHUB_ENV
26
30
27
- # - name: Generate Dokka
28
- # run: gradle dokkaHtmlMultiModule
31
+ - name : Run gradle build and publish
32
+ run : >
33
+ gradle build publish
34
+ -PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}
29
35
30
36
# - name: Publish documentation to GitHub Pages
31
37
# uses: peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ plugins {
7
7
id(" com.mineinabyss.conventions.kotlin" )
8
8
id(" com.mineinabyss.conventions.papermc" )
9
9
id(" com.mineinabyss.conventions.nms" )
10
+ id(" com.mineinabyss.conventions.autoversion" )
10
11
id(" com.mineinabyss.conventions.publication" )
11
12
id(" com.mineinabyss.conventions.testing" )
12
13
id(" com.mineinabyss.conventions.copyjar" )
@@ -43,6 +44,6 @@ dependencies {
43
44
exclude(" org.jetbrains.kotlinx" )
44
45
}
45
46
46
- implementation(libs.idofront.core)
47
+ implementation(libs.bundles. idofront.core)
47
48
implementation(libs.idofront.nms)
48
49
}
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
2
group =com.mineinabyss
3
- version =0.7
4
- kotlinVersion =1.6 .10
5
- composeVersion =1.1.1
3
+ version =0.8
4
+ kotlinVersion =1.7 .10
5
+ composeVersion =1.2.0
6
6
serverVersion =1.19.2-R0.1-SNAPSHOT
7
- idofrontVersion =0.12.112
7
+ idofrontVersion =0.14.7
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ dependencies {
11
11
// MineInAbyss platform
12
12
compileOnly(project(" :" ))
13
13
compileOnly(libs.kotlinx.coroutines)
14
- implementation(" com.mineinabyss:idofront:$idofrontVersion " )
14
+ implementation(" com.mineinabyss:idofront-commands:$idofrontVersion " )
15
+ implementation(" com.mineinabyss:idofront-platform-loader:$idofrontVersion " )
15
16
}
16
17
17
18
tasks {
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ package com.mineinabyss.guiy.example
2
2
3
3
import com.mineinabyss.guiy.example.gui.MainMenu
4
4
import com.mineinabyss.guiy.inventory.guiy
5
- import com.mineinabyss.idofront.commands.CommandHolder
6
5
import com.mineinabyss.idofront.commands.execution.IdofrontCommandExecutor
7
6
import com.mineinabyss.idofront.commands.extensions.actions.playerAction
8
7
9
- class GuiyCommands (val plugin : GuiyExamplePlugin ): IdofrontCommandExecutor() {
8
+ class GuiyCommands (val plugin : GuiyExamplePlugin ) : IdofrontCommandExecutor() {
10
9
override val commands = commands(plugin) {
11
10
" guiyexample" {
12
11
playerAction {
Original file line number Diff line number Diff line change 1
1
package com.mineinabyss.guiy.example
2
2
3
- import com.mineinabyss.idofront.platforms.IdofrontPlatforms
3
+ import com.mineinabyss.idofront.platforms.Platforms
4
4
import org.bukkit.plugin.java.JavaPlugin
5
5
6
6
class GuiyExamplePlugin : JavaPlugin () {
7
7
override fun onLoad () {
8
- IdofrontPlatforms .load(this , " mineinabyss" )
8
+ Platforms .load(this , " mineinabyss" )
9
9
}
10
10
11
11
override fun onEnable () {
Original file line number Diff line number Diff line change @@ -3,26 +3,21 @@ package com.mineinabyss.guiy
3
3
import com.mineinabyss.guiy.inventory.GuiyEventListener
4
4
import com.mineinabyss.guiy.inventory.GuiyInventoryHolder
5
5
import com.mineinabyss.guiy.inventory.GuiyScopeManager
6
- import com.mineinabyss.idofront.nms.aliases.NMSItemStack
7
- import com.mineinabyss.idofront.nms.aliases.toNMS
8
- import com.mineinabyss.idofront.platforms.IdofrontPlatforms
9
- import com.mineinabyss.idofront.plugin.registerEvents
6
+ import com.mineinabyss.idofront.platforms.Platforms
7
+ import com.mineinabyss.idofront.plugin.listeners
10
8
import kotlinx.coroutines.cancel
11
- import net.minecraft.world.item.Items
12
9
import org.bukkit.Bukkit
13
- import org.bukkit.Material
14
- import org.bukkit.inventory.ItemStack
15
10
import org.bukkit.plugin.java.JavaPlugin
16
11
17
12
val guiyPlugin = Bukkit .getPluginManager().getPlugin(" Guiy" ) as JavaPlugin
18
13
19
14
class GuiyPlugin : JavaPlugin () {
20
15
override fun onLoad () {
21
- IdofrontPlatforms .load(this , " mineinabyss" )
16
+ Platforms .load(this , " mineinabyss" )
22
17
}
23
18
24
19
override fun onEnable () {
25
- registerEvents (GuiyEventListener ())
20
+ listeners (GuiyEventListener ())
26
21
}
27
22
28
23
override fun onDisable () {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import com.mineinabyss.guiy.modifiers.SizeModifier
13
13
import com.mineinabyss.guiy.modifiers.sizeIn
14
14
import com.mineinabyss.guiy.nodes.InventoryCloseScope
15
15
import com.mineinabyss.guiy.nodes.StaticMeasurePolicy
16
- import com.mineinabyss.idofront.messaging .miniMsg
16
+ import com.mineinabyss.idofront.textcomponents .miniMsg
17
17
import net.kyori.adventure.text.Component
18
18
import org.bukkit.Bukkit
19
19
import org.bukkit.entity.Player
You can’t perform that action at this time.
0 commit comments