javacard-gradle-plugin icon indicating copy to clipboard operation
javacard-gradle-plugin copied to clipboard

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

Open amochkin opened this issue 1 year ago • 0 comments

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'
        }
    }
}

amochkin avatar Jun 07 '23 07:06 amochkin