forked from vletoux/GidsApplet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (70 loc) · 2.24 KB
/
Copy pathbuild.gradle
File metadata and controls
84 lines (70 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
group 'cz.muni.fi.crocs.jcard'
version '1.0-SNAPSHOT'
// Buildscript configuration for the javacard-gradle plugin.
// Do not modify this particular block. Dependencies for the project are lower.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.klinec:gradle-javacard:1.5.5'
}
}
apply plugin: 'javacard'
sourceCompatibility = 1.8
// Common settings, definitions
final def rootPath = rootDir.absolutePath
final def libsSdk = rootPath + '/libs-sdks'
// Repositories for your project
repositories {
mavenCentral()
}
// Dependencies for your project
dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
//testCompile group: 'com.klinec', name: 'javacard-tools', version: '0.0.1', transitive: false
//testCompile group: 'junit', name: 'junit', version: '4.12'
//testCompile 'org.testng:testng:6.1.1'
//jcardsim 'com.licel:jcardsim:3.0.4'
}
// JavaCard SDKs and libraries
final def JC212 = libsSdk + '/jc212_kit'
final def JC221 = libsSdk + '/jc221_kit'
final def JC222 = libsSdk + '/jc222_kit'
final def JC303 = libsSdk + '/jc303_kit'
final def JC304 = libsSdk + '/jc304_kit'
final def JC305 = libsSdk + '/jc305u1_kit'
// Which JavaCard SDK to use - select
final def JC_SELECTED = JC304
javacard {
//noinspection GroovyAssignabilityCheck
config {
jckit JC_SELECTED
// JCardSim automatically added by the javacard-gradle plugin
addSurrogateJcardSimRepo true
addImplicitJcardSim true
addImplicitJcardSimJunit true
//noinspection GroovyAssignabilityCheck
cap {
packageName 'com.mysmartlogon.gidsApplet'
version '1.0'
aid 'A0:00:00:03:97:42:54:46:59'
output 'GidsApplet.cap'
//noinspection GroovyAssignabilityCheck
applet {
className 'com.mysmartlogon.gidsApplet.GidsApplet'
aid 'A0:00:00:03:97:42:54:46:59:02:01'
}
//noinspection GroovyAssignabilityCheck
dependencies {
remote 'fr.bmartel:gplatform:2.1.1'
}
}
test {
dependencies {
compile 'junit:junit:4.12'
compile 'com.licel:jcardsim:3.0.4'
}
}
}
}