Allan Wang
06/04/2019, 12:37 AMgildor
06/04/2019, 1:14 AMAllan Wang
06/04/2019, 1:15 AMextensions.create
aren’t registered)gildor
06/04/2019, 1:16 AMAllan Wang
06/04/2019, 1:17 AMgildor
06/04/2019, 1:17 AMAllan Wang
06/04/2019, 1:19 AMgildor
06/04/2019, 1:20 AMAllan Wang
06/04/2019, 1:20 AMgildor
06/04/2019, 1:20 AMAllan Wang
06/04/2019, 1:28 AMtasks
seems to fix the tooling issue. The samples are a bit different from what I’m used to but I’ll figure it out as I gogildor
06/04/2019, 1:42 AMAllan Wang
06/04/2019, 1:43 AMgradlePlugin
. id looks like the package name, yet in the example it isn’t.
I checked the generated jar, and while build
resolves errors in the gradle.build
, I’m still getting errors in my classes. None of them are even in the resulting jar, and the command succeeds, so it’s just skipping everythinggildor
06/04/2019, 1:44 AMAllan Wang
06/04/2019, 1:44 AMgildor
06/04/2019, 1:45 AMAllan Wang
06/04/2019, 1:45 AMkotlin("jvm") version "1.3.31"
stuff was added per Android Studio. It doesn’t work without it eithergildor
06/04/2019, 2:04 AMgroovy
dir, move to kotlin
or java
stdlib
in dependeicnes, kotlin-dsl will apply itAllan Wang
06/04/2019, 2:20 AMgildor
06/04/2019, 2:34 AMAllan Wang
06/04/2019, 5:33 AMWARNING: Unsupported Kotlin plugin version.
?
All the examples supply their own kotlin versions, yet the embedded kotlin-dsl
version is constant. Specifying it myself doesn’t resolve the issue.
I’m currently using kotlin 1.3.31
, whereas Gradle v5.1.1
uses kotlin-dsl 1.1.1
with kotlin 1.3.11
gildor
06/04/2019, 5:34 AMAllan Wang
06/04/2019, 5:30 PMgildor
06/05/2019, 8:31 AMAllan Wang
06/06/2019, 2:40 AMWARNING: Unsupported Kotlin plugin version.
, it appears as though the warning stops the jar file from being generated. Do I not need kotlin gradle plugin? This is my main build gradle: https://github.com/AllanWang/KAU/blob/kotlin-plugin/build.gradle.kts
And all the subproject configs are skipped for the kotlin-dsl project. The only addition is the kotlin gradle dependency, but isn’t that required?
And what about any other dependencies with different kotlin versions?gildor
06/06/2019, 2:40 AMthe warning stops the jar file from being generatedIt is not, it’s just a warning
Allan Wang
06/06/2019, 2:41 AMgildor
06/06/2019, 2:44 AMAllan Wang
06/06/2019, 2:45 AMgildor
06/06/2019, 2:45 AMAllan Wang
06/06/2019, 2:47 AMgildor
06/06/2019, 2:47 AMAllan Wang
06/06/2019, 2:49 AM> Task :gradle-plugin:compileJava NO-SOURCE
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
> Task :gradle-plugin:compileGroovy
> Task :gradle-plugin:processResources
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:install
in the new one, there is just:
> Configure project :gradle-plugin
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.3.11` that might work differently than in the requested version `1.3.31`.
> Configure project :kpref-activity
Generating public XML
> Configure project :mediapicker
Generating public XML
> Configure project :searchview
Generating public XML
> Task :clean UP-TO-DATE
> Task :about:clean
> Task :adapter:clean
> Task :colorpicker:clean
> Task :core:clean
> Task :core-ui:clean
> Task :gradle-plugin:clean
> Task :kpref-activity:clean
And nothing after clean, whereas all the other submodules are build. They haven’t been converted to kts though. I have other issues with the conversion for nowgildor
06/06/2019, 2:50 AMAllan Wang
06/06/2019, 2:50 AMconfigure<>{ }
might workgildor
06/06/2019, 2:54 AMAllan Wang
06/06/2019, 2:56 AMgildor
06/06/2019, 3:05 AM