noonmaru / inv-captive

GNU General Public License v3.0
45 stars 19 forks source link

Build 불가능 #23

Closed hanjm-github closed 3 years ago

hanjm-github commented 3 years ago

relocate = true

Task :compileKotlin FAILED

FAILURE: Build failed with an exception.

이라는 메시지가 나오며 빌드에 실패합니다. #6 의 해결법을 참고하여 수정해 보았으나 같은 메시지가 출력 됩니다. AdoptOpenJDK Hotspot 8.0.272.10 사용중입니다

hanjm-github commented 3 years ago

파일을 가져오는 위치가 변경된것 같습니다. build.gradle.kts 파일의

dependencies { compileOnly(kotlin("stdlib-jdk8")) compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1") compileOnly("com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT") compileOnly("org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT")

implementation("com.github.noonmaru:tap:3.2.6") implementation("com.github.noonmaru:kommand:0.6.3")

testImplementation("junit:junit:4.13") testImplementation("org.mockito:mockito-core:3.3.3") testImplementation("org.powermock:powermock-module-junit4:2.0.7") testImplementation("org.powermock:powermock-api-mockito2:2.0.7") testImplementation("org.slf4j:slf4j-api:1.7.25") testImplementation("org.apache.logging.log4j:log4j-core:2.8.2") testImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.8.2") testImplementation("org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT") }

부분을 아래 처럼 바꾸니 일단 위 오류는 사라졌습니다.

dependencies { compileOnly(kotlin("stdlib-jdk8")) compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1") compileOnly("com.destroystokyo.paper:paper-api:1.16.4-R0.1-SNAPSHOT") compileOnly("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT")

implementation("com.github.noonmaru:tap:3.2.6") implementation("com.github.noonmaru:kommand:0.6.3")

testImplementation("junit:junit:4.13") testImplementation("org.mockito:mockito-core:3.3.3") testImplementation("org.powermock:powermock-module-junit4:2.0.7") testImplementation("org.powermock:powermock-api-mockito2:2.0.7") testImplementation("org.slf4j:slf4j-api:1.7.25") testImplementation("org.apache.logging.log4j:log4j-core:2.8.2") testImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.8.2") testImplementation("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT") }

하지만 이번에는 이런 오류 문구가 출력 됩니다.

e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (4, 12): Unresolved reference: minecraft e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (10, 19): Unresolved reference: craftbukkit e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (11, 19): Unresolved reference: craftbukkit e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (16, 24): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (16, 36): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (18, 24): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (18, 36): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (20, 29): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (20, 41): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (22, 32): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (22, 44): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (25, 19): Unresolved reference: PlayerInventory e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (44, 76): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (44, 88): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (46, 31): Unresolved reference: CraftItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (46, 56): Unresolved reference: CraftItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (63, 75): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (63, 87): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (64, 30): Unresolved reference: CraftItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (64, 59): Unresolved reference: it e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (68, 39): Unresolved reference: CraftPlayer e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (86, 20): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (86, 30): Unresolved reference: Blocks e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (90, 20): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (97, 35): Unresolved reference: CraftItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (117, 17): Unresolved reference: NonNullList e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (117, 29): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (117, 73): Unresolved reference: ItemStack e: D:\다운로드\inv-captive-0.1.0\inv-captive-0.1.0\src\main\kotlin\com\github\noonmaru\invcaptive\plugin\InvCaptive.kt: (121, 28): Unresolved reference: ItemBlock