Kotlin: Unresolved reference: hamcrest(CreeperTestKotlin)


#1

[FR]
Bonjour,
après avoir fait la MAJ aujourd’hui => https://github.com/SpongePowered/SpongeForge#updating-your-clone, j’ai ces erreurs:

[Google trad]
Hello, after doing the update today => https://github.com/SpongePowered/SpongeForge#updating-your-clone, I have these errors:

Information:Kotlin: kotlinc-jvm 1.3.11 (JRE 1.8.0_181-b13)
Information:24/04/2019 09:15 - Compilation completed with 59 errors and 0 warnings in 2 s 45 ms
G:\Sponge\SpongeForge\src\integration-test\kotlin\org\spongepowered\mod\CreeperTestKotlin.kt
Error:(27, 12) Kotlin: Unresolved reference: hamcrest
Error:(28, 12) Kotlin: Unresolved reference: hamcrest
Error:(29, 12) Kotlin: Unresolved reference: junit
Error:(30, 12) Kotlin: Unresolved reference: junit
Error:(31, 12) Kotlin: Unresolved reference: junit
Error:(56, 26) Kotlin: Unresolved reference: mctester
Error:(57, 26) Kotlin: Unresolved reference: mctester
Error:(58, 26) Kotlin: Unresolved reference: mctester
Error:(59, 26) Kotlin: Unresolved reference: mctester
Error:(60, 26) Kotlin: Unresolved reference: mctester
Error:(61, 26) Kotlin: Unresolved reference: mctester
Error:(64, 2) Kotlin: Unresolved reference: RunWith
Error:(64, 10) Kotlin: Unresolved reference: MinecraftRunner
Error:(65, 36) Kotlin: Unresolved reference: TestUtils
Error:(65, 48) Kotlin: Unresolved reference: BaseTest
Error:(67, 6) Kotlin: Unresolved reference: Test
Error:(68, 6) Kotlin: Unresolved reference: CoroutineTest
Error:(72, 27) Kotlin: Unresolved reference: testUtils
Error:(75, 96) Kotlin: Unresolved reference: java
Error:(78, 9) Kotlin: Unresolved reference: CoroutineTestUtils
Error:(80, 30) Kotlin: Unresolved reference: testUtils
Error:(81, 14) Kotlin: Unresolved reference: client
Error:(85, 14) Kotlin: Unresolved reference: testUtils
Error:(85, 49) Kotlin: Unresolved reference: StandaloneEventListener
Error:(85, 115) Kotlin: Unresolved reference: java
Error:(90, 21) Kotlin: Unresolved reference: assertThat
Error:(90, 67) Kotlin: Unresolved reference: hasSize
Error:(93, 21) Kotlin: Unresolved reference: assertTrue
Error:(93, 116) Kotlin: Unresolved reference: testUtils
Error:(94, 21) Kotlin: Unresolved reference: assertTrue
Error:(102, 9) Kotlin: Unresolved reference: client
Error:(104, 9) Kotlin: Unresolved reference: assertThat
Error:(104, 67) Kotlin: Unresolved reference: instanceOf
Error:(104, 102) Kotlin: Unresolved reference: java
Error:(106, 14) Kotlin: Unresolved reference: testUtils
Error:(106, 48) Kotlin: Unresolved reference: StandaloneEventListener
Error:(106, 112) Kotlin: Unresolved reference: java
Error:(115, 14) Kotlin: Unresolved reference: testUtils
Error:(115, 115) Kotlin: Unresolved reference: java
Error:(116, 14) Kotlin: Unresolved reference: testUtils
Error:(118, 9) Kotlin: Unresolved reference: CoroutineTestUtils
Error:(119, 14) Kotlin: Unresolved reference: client
Error:(123, 14) Kotlin: Unresolved reference: testUtils
Error:(125, 22) Kotlin: Unresolved reference: client
Error:(129, 12) Kotlin: Unresolved reference: StandaloneEventListener
Error:(129, 92) Kotlin: Unresolved reference: java
Error:(130, 13) Kotlin: Unresolved reference: assertThat
Error:(130, 65) Kotlin: Unresolved reference: equalTo
Error:(138, 18) Kotlin: Unresolved reference: testUtils
Error:(138, 80) Kotlin: Unresolved reference: client
Error:(139, 21) Kotlin: Unresolved reference: StandaloneEventListener
Error:(139, 99) Kotlin: Unresolved reference: java
Error:(141, 25) Kotlin: Unresolved reference: assertThat
Error:(142, 33) Kotlin: Unresolved reference: equalTo
Error:(142, 46) Kotlin: Unresolved reference: testUtils
Error:(145, 29) Kotlin: Unresolved reference: assertThat
Error:(145, 70) Kotlin: Unresolved reference: equalTo
Error:(155, 6) Kotlin: Unresolved reference: Test
Error:(156, 6) Kotlin: Unresolved reference: CoroutineTest


#2

Are you sure you’re on ‘stable-7’? https://github.com/SpongePowered/SpongeForge

Your link points to the 1.13 branch.


#3

Je suis en stable-7:

image


#4

Try re-importing SpongeForge with Create separate modules per source set checked in the Gradle import screen.


#5

[fr]
J’ai supprimé le fichier et cela fonctionne maintenant

[google trad]
I deleted the file and it works now