as im trying to get my plugin to compile for kotli...
# gradle
s
as im trying to get my plugin to compile for kotlin-native
g
Konan plugin is deprecated and is not working with new Gradle
s
what do you suggest instead
g
Or use Kotlin Multiplatform plugin which works with all kotlin platfroms
s
i get
Copy code
> Configure project :buildSrc
The GRADLE_METADATA feature is not enabled: publication and external dependencies will not work properly.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/macropreprocessor/AndroidStudioProjects/kppmaster/buildSrc/build.gradle' line: 2

* What went wrong:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.platform.native', version: '1.3.0-rc-146']
> Failed to apply plugin [class 'org.gradle.nativeplatform.test.plugins.NativeTestingBasePlugin']
   > Cannot add task 'test' as a task with that name already exists.

* Try:
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.

* Get more help at <https://help.gradle.org>

CONFIGURE FAILED in 13s
Cannot add task 'test' as a task with that name already exists.
Open File
g
What is not clear in this error message for you?
Cannot add task ‘test’ as a task with that name already exists
Or you do not add test task manually? If so, looks as conflict with some other plugin
s
this?
Copy code
plugins {
    `kotlin-dsl`
    `java-library`
    kotlin("multiplatform") version "1.3.21"
}

repositories {
    jcenter()
    mavenCentral()
}

kotlin {
    jvm() // Creates a JVM target with the default name 'jvm'
}
g
You cannot apply
java-library
plugin together with multiplatform
also yiou cannot use it with Kotlin-DSL
i’m not really sure what you trying to do with such strange set of plugins
s
ok
now i get
Copy code
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE

FAILURE: Build failed with an exception.

* Where:
Build file '/home/macropreprocessor/AndroidStudioProjects/kppmaster/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'kpp' not found.

* Try:
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.

* Get more help at <https://help.gradle.org>

CONFIGURE FAILED in 1s
Plugin with id 'kpp' not found.
Open File
g
Check that you have your plugin properly configured and available