spierce7
07/24/2021, 7:04 PMmodel
, but that doesn’t seem to exist in the kotlin world.
2. if I run ./gradlew :project:tasks
I get a list of tasks for that project. I can do something like this in gradle 6.9:
def copyDylib = tasks.register('copyDylib', Copy) {
dependsOn "assembleDependentsMyJniLibrarySharedLibrary"
from(file("$buildDir/libs/myjnilibrary/shared/"))
into(file("$resourcesPath"))
}
But after upgrading to Gradle 7.x, it can no longer find the task assembleDependentsMyJniLibrarySharedLibrary
even though I can call it and it clearly exists. I’ve also tried afterEvaluate
with the same result.Vampire
07/24/2021, 10:10 PMVampire
07/24/2021, 10:11 PMThe Kotlin DSL will not support the model {} block, which is part of the discontinued Gradle Software Model.
spierce7
07/25/2021, 1:21 AMYou should not use these model based plugins at all. They are a relic of a failed experiment. You should not use it for need things and immigrate old things to the new replacement plugins.What model based plugins? I just followed the jni instructions on jetbrains website. Is there something better than the
c
plugin?Vampire
07/25/2021, 1:22 AMVampire
07/25/2021, 1:24 AMVampire
07/25/2021, 1:24 AM