Skip to content

Gradle error: Could not find method compile() for arguments [com.github.martinpaljak:globalplatformpro:18.09.14] #20

@amochkin

Description

@amochkin

Gradle version: 8.0

Having an error while trying to build.

./gradlew

Error message:

Could not find method compile() for arguments [com.github.martinpaljak:globalplatformpro:18.09.14] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Contents of build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'fr.bmartel:gradle-javacard:1.5.6'
    }
}

apply plugin: 'javacard'

dependencies {
    compile 'com.github.martinpaljak:globalplatformpro:18.09.14'
}

javacard {
    config {
        cap {
            packageName 'com.smartcard.sign'
            version '0.1'
            aid 'a0:00:00:11:22'
            output 'applet.cap'
            applet {
                className 'com.smartcard.sign.Sign'
                aid 'a0:00:00:11:22:01:01'
            }
        }
    }

    scripts {
        script {
            name 'select'
            apdu '00:A4:04:00:0A:01:02:03:04:05:06:07:08:09:01:00'
        }
        script {
            name 'hello'
            apdu '00:40:00:00:00'
        }
        task {
            name 'sendHello'
            scripts 'select', 'hello'
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions