Upgrade to Kotlin 1.4M causing build failures.
jrddunbr opened this issue ยท 6 comments
Not sure if this is our repository's fault or not, but it would seem to be that your upgrade to Kotlin 1.4M recently broke our builds, because there are many missing libraries on JCenter for Kotlin 1.4M
You can also see this in our build output here: https://github.com/eln2/eln2/runs/598390874?check_suite_focus=true
Repository here: https://github.com/eln2/eln2/tree/455567f5ebd0116f5473c1f7d2c0c7c68355f1fa
Example of JCenter missing builds of packages for Kotlin 1.4M: https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/
We fixed it on our end by (temporarily) setting the version of your mod to 1.1.0, which uses the old Kotlin 1.3.x
2020-04-18T20:32:35.8372192Z > Configure project :integration-mc1-14
2020-04-18T20:32:35.8373353Z New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
2020-04-18T20:32:42.8405794Z
2020-04-18T20:32:42.8418422Z FAILURE: Build failed with an exception.
2020-04-18T20:32:42.8418968Z
2020-04-18T20:32:42.8422700Z * What went wrong:
2020-04-18T20:32:42.8423710Z Could not determine the dependencies of task ':integration-mc1-14:compileJava'.
2020-04-18T20:32:42.8424334Z > Could not resolve all task dependencies for configuration ':integration-mc1-14:compileClasspath'.
2020-04-18T20:32:42.8446062Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4-M1.
2020-04-18T20:32:42.8446608Z Searched in the following locations:
2020-04-18T20:32:42.8447212Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8448085Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8448681Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8449284Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8457466Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8458207Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8458820Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8462748Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8463340Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8463866Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8473509Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8474088Z Required by:
2020-04-18T20:32:42.8474642Z project :integration-mc1-14
2020-04-18T20:32:42.8475254Z > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.4-M1.
2020-04-18T20:32:42.8475678Z Searched in the following locations:
2020-04-18T20:32:42.8476306Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8477010Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8477707Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8478386Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8479191Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8480846Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8481447Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8481921Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8482479Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8482941Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8483396Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8483622Z Required by:
2020-04-18T20:32:42.8484001Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8484361Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4-M1.
2020-04-18T20:32:42.8484535Z Searched in the following locations:
2020-04-18T20:32:42.8485215Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8634719Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8635435Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8635877Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8636328Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8636779Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8637229Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8637653Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8638077Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.pom
2020-04-18T20:32:42.8638534Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8638965Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4-M1/kotlin-stdlib-jdk7-1.4-M1.jar
2020-04-18T20:32:42.8639135Z Required by:
2020-04-18T20:32:42.8639449Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8639858Z > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4-M1.
2020-04-18T20:32:42.8640001Z Searched in the following locations:
2020-04-18T20:32:42.8640396Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8640805Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8641338Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8641733Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8642141Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8642561Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8642968Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8643353Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8643736Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.pom
2020-04-18T20:32:42.8644243Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8644586Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4-M1/kotlin-stdlib-jdk8-1.4-M1.jar
2020-04-18T20:32:42.8644716Z Required by:
2020-04-18T20:32:42.8645160Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8645418Z > Could not find org.jetbrains.kotlin:kotlin-reflect:1.4-M1.
2020-04-18T20:32:42.8645526Z Searched in the following locations:
2020-04-18T20:32:42.8645826Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8646143Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8646574Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8646905Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8647429Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8647837Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8648236Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8648609Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8648988Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.pom
2020-04-18T20:32:42.8649379Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8649760Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-reflect/1.4-M1/kotlin-reflect-1.4-M1.jar
2020-04-18T20:32:42.8649907Z Required by:
2020-04-18T20:32:42.8650197Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1
2020-04-18T20:32:42.8650486Z > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.4-M1.
2020-04-18T20:32:42.8650666Z Searched in the following locations:
2020-04-18T20:32:42.8651021Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8651396Z - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8651775Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8652163Z - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8652560Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8652960Z - https://thedarkcolour.github.io/KotlinForForge/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8653362Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8653738Z - file:/home/runner/.gradle/caches/forge_gradle/bundeled_repo/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8654112Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.pom
2020-04-18T20:32:42.8654503Z - https://files.minecraftforge.net/maven/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8654894Z - https://libraries.minecraft.net/org/jetbrains/kotlin/kotlin-stdlib/1.4-M1/kotlin-stdlib-1.4-M1.jar
2020-04-18T20:32:42.8655045Z Required by:
2020-04-18T20:32:42.8655389Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1 > org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4
2020-04-18T20:32:42.8655750Z project :integration-mc1-14 > thedarkcolour:kotlinforforge:1.2.1 > org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.4
2020-04-18T20:32:42.8655828Z
2020-04-18T20:32:42.8655940Z * Try:
2020-04-18T20:32:42.8656298Z Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
2020-04-18T20:32:42.8656381Z
2020-04-18T20:32:42.8656511Z * Get more help at https://help.gradle.org
2020-04-18T20:32:42.8656601Z
2020-04-18T20:32:42.8656708Z BUILD FAILED in 26s
They're taking quite a while to release a stable version of 1.4, and I haven't experienced any issues using 1.4-M1. I'm providing the option for those like myself who appreciate the new features of Kotlin 1.4, such as the SAM conversions, faster compiler algorithm, trailing commas, and mixing named arguments with unnamed arguments.
I think that you should also be aware that I've fixed addListener and addGenericListener in the latest versions of Kotlin for Forge. I've wanted to use them for a while so I finally got around to patching them!
Sounds decent, just seems like it's breaking builds that use the current stable. I'll see about moving our project to 1.4M, I read the release notes yesterday and it seemed fine.
Check the README.md, I changed the part you need to copy + paste into your build.gradle.
If you're wondering what's changed, I added an extra repository to the buildscript for the Kotlin gradle plugin and to the dependencies block for Kotlin Early Access. I've also added two extra lines to the compileKotlin.kotlinOptions so that 1.4 language features are enabled.
Isn't Kotlin 1.4M a preview release though? I would think you want to target stable versions, right?
https://blog.jetbrains.com/kotlin/2020/03/kotlin-1-4-m1-released/
Not a big issue, but I think we're going to hold back on our end for the stable releases.