개인 자료란 (JE)

  서버 커뮤니티

Profile 제론 일반인

ZeronDev d82d8f3f90c34bfcb815212086ec1809

Profile

질문하기 플러그인

minecrell의 plugin.yml 플러그인을 사용 중인데 빌드 할 때 에러가 납니다

2023.02.28 조회 수 47 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 

plugins {
    kotlin("jvm") version "1.8.0"
    id("io.papermc.paperweight.userdev") version "1.3.8"
    id("com.github.johnrengelman.shadow") version "7.1.0"
    id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
}

group = "me.zeron.test"
version = "1.0.0"

val minecraftVersion = "1.19.2"

java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

repositories {
    mavenCentral()
    mavenLocal()
    maven("https://papermc.io/repo/repository/maven-public/")
}

dependencies {
    implementation(kotlin("stdlib"))
    paperDevBundle("${minecraftVersion}-R0.1-SNAPSHOT")
    compileOnly("net.kyori:adventure-api:4.12.0")
    compileOnly("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.9.0")
    compileOnly("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.9.0")
    compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
    compileOnly("io.github.ZeronDev:ZeronLib:1.0.0")
    implementation(kotlin("reflect"))
}

tasks {
    processResources {
        filesMatching("*.yml") {
            expand(project.properties)
        }
    }
    shadowJar {
        archiveBaseName.set(rootProject.name)
        archiveClassifier.set("")
        archiveVersion.set(project.version.toString())

        doLast {
            archiveFileName.set("${rootProject.name}-${project.version}")
            copy {
                from(archiveFile)
                val fileLoc = File("C:\\Users\\USER\\AppData\\Roaming\\.feather\\player-server\\servers\\06fac9ca-dc68-43ea-ad6b-823342159533\\plugins")
                into(if (File(fileLoc, archiveFileName.get()).exists()) fileLoc else fileLoc)
            }
        }
    }
}

bukkit {
    name = "ZeronTest"
    this.version = project.version.toString()
    apiVersion = minecraftVersion.substring(0 until minecraftVersion.indexOfLast { it == '.' })
    author = "ZeronDev"
    main = "${group}.MainCore"
}

build.gradle.kts 파일입니다




5개의 댓글

냥냐챠
2023.02.28

Gradle 버전냥

제론
2023.03.01
@냥냐챠

7.1.1이여

냥냐챠
2023.03.01
@제론

plugin-yml requires at least Gradle 7.4. Using the latest version of Gradle is recommended. If you are using an older version of Gradle, try using an older version of plugin-yml as well. plugin-yml 0.5.2 still supports Gradle 5.0+.

그쪽이 사용하는 plugin-yml 버전은 0.5.3 냥 그리고 현재 리포지토리 페이지 README.md 에는 플러그인 사용에는 Gradle 7.4 이상을 요구한다 나와있다냥.

Gradle 을 업데이트 하거나 플러그인 버전을 낮춰라냥.

그리고 질문하기 전에 소스 리포 페이지가 있으면 먼저 들어가서 왜 작동되지 않았는지에 대한 이유는 찾아보는게 좋을거다냥.
대부분 이유가 나와있다냥.

참고냥

냥냐챠
2023.03.01
@냥냐챠

https://github.com/Minecrell/plugin-yml

제론
2023.03.01
@냥냐챠

앗 감사합니다!!

그래들 버전이 문제일지는 몰랐네요

뉴스 및 창작물
/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1

/files/thumbnails/932/765/003/262x150.crop.jpg?20240410124459

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

노트블럭전문가

2024-04-10

0

/files/thumbnails/403/765/003/262x150.crop.jpg?20240409190538

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

Sonttukk

2024-04-09

4