bitkid
10/20/2020, 9:55 AMmaven-publish
}
everything works so far .. the only thing is it uses an old kotlin version. how can i force it to 1.4.10 for everything (buildsrc and sub modules). as soon as i put a version somewhere (in my root build.gradle.kts as an example) i get the error message "Plugin request for plugin already on the classpath must not include a version". any ideas?bitkid
10/20/2020, 10:04 AMembedded-kotlin
and kotlin-dsl
plugins rely on features of Kotlin 1.3.72
that might work differently than in the requested version 1.4.10
."Javier
10/20/2020, 10:13 AMJavier
10/20/2020, 10:13 AMbitkid
10/20/2020, 10:16 AMbitkid
10/20/2020, 10:20 AMbitkid
10/20/2020, 10:20 AMJavier
10/20/2020, 10:21 AMJavier
10/20/2020, 10:22 AMbitkid
10/20/2020, 10:27 AMbitkid
10/20/2020, 10:33 AMbitkid
10/20/2020, 10:37 AMbitkid
10/20/2020, 10:38 AM$ ./gradlew init
Select type of project to generate:
1: basic
2: application
3: library
4: Gradle plugin
Enter selection (default: basic) [1..4] 2
Select implementation language:
1: C++
2: Groovy
3: Java
4: Kotlin
5: Scala
6: Swift
Enter selection (default: Java) [1..6] 4
Split functionality across multiple subprojects?:
1: no - only one application project
2: yes - application and library projects
Enter selection (default: no - only one application project) [1..2] 2
Select build script DSL:
1: Groovy
2: Kotlin
Enter selection (default: Kotlin) [1..2] 2
Project name (default: tmpGradle): test
Source package (default: test):
bitkid
10/20/2020, 10:39 AMbitkid
10/20/2020, 10:39 AMbitkid
10/20/2020, 10:39 AMbitkid
10/20/2020, 10:40 AMbitkid
10/20/2020, 10:40 AMJavier
10/20/2020, 11:12 AMbitkid
10/20/2020, 12:06 PMbitkid
10/20/2020, 12:06 PM$ ./gradlew build
> Task :buildSrc:compileKotlin
The `kotlin-dsl` plugin applied to project ':buildSrc' enables experimental Kotlin compiler features. For more information see <https://docs.gradle.org/6.7/userguide/kotlin_dsl.html#sec:kotlin-dsl_plugin>
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/sadatgus/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotlin-stdlib-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotlin-stdlib-common-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotlin-stdlib-jdk7-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotlin-stdlib-jdk8-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/wrapper/dists/gradle-6.7-bin/efvqh8uyq79v2n7rcncuhu9sv/gradle-6.7/lib/kotlin-reflect-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.72/916d54b9eb6442b615e6f1488978f551c0674720/kotlin-stdlib-jdk8-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.10/e2b3c6695eee6085e606d96d685396dce23a3a06/kotlin-reflect-1.4.10.jar (version 1.4)
C:/Users/sadatgus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.72/3adfc2f4ea4243e01204be8081fe63bde6b12815/kotlin-stdlib-jdk7-1.3.72.jar (version 1.3)
C:/Users/sadatgus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4)
C:/Users/sadatgus/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4)
w: Consider providing an explicit dependency on kotlin-reflect 1.4 to prevent strange errors
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
Javier
10/20/2020, 12:15 PMJavier
10/20/2020, 12:57 PMbitkid
10/20/2020, 8:10 PM