Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amochkin opened this issue Jun 7, 2023 · 0 comments

Comments

@amochkin
Copy link

amochkin commented Jun 7, 2023

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'
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant