All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.gradle.tasks.android.packageMainDexJarTask.kt Maven / Gradle / Ivy

The newest version!
package godot.gradle.tasks.android

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskProvider

fun Project.packageMainDexJarTask(
    createMainDexFileTask: TaskProvider
): TaskProvider {
    return tasks.register("packageMainDexJar", ShadowJar::class.java) {
        with(it) {
            group = "godot-kotlin-jvm"
            description =
                "Packs the android dex file of main, together with the needed entry service file into a jar. Needed for android builds only"

            archiveBaseName.set("main-dex")

            from("src/main/resources").include("**/godot.registration.Entry")
            from("${project.layout.buildDirectory.asFile.get().absolutePath}/libs/").include("*.dex")

            dependsOn(createMainDexFileTask)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy