1// Generic Gradle project 2 3apply plugin: 'application' 4 5sourceCompatibility = '1.8' 6 7repositories { 8 mavenCentral() 9 google() 10} 11 12application { 13 mainClassName 'com.android.apksigner.ApkSignerTool' 14} 15 16sourceSets { 17 main { 18 java { 19 srcDirs 'src/main/java', 'src/apksigner/java' 20 } 21 resources { 22 srcDirs 'src/apksigner/java' 23 } 24 } 25} 26 27tasks.register('createTestGoldens', JavaExec) { 28 classpath = sourceSets.test.runtimeClasspath 29 mainClass = 'com.android.apksig.ApkSignerTest' 30 args = ["src/test/resources/com/android/apksig"] 31} 32 33tasks.register('createTestAwsData', JavaExec) { 34 classpath = sourceSets.test.runtimeClasspath 35 mainClass = 'com.android.apksig.kms.aws.AwsTestData' 36} 37 38tasks.register('createTestGcpData', JavaExec) { 39 classpath = sourceSets.test.runtimeClasspath 40 mainClass = 'com.android.apksig.kms.gcp.GcpTestData' 41} 42 43dependencies { 44 implementation 'com.google.cloud:google-cloud-kms:2.20.0' 45 implementation 'org.conscrypt:conscrypt-openjdk-uber:2.5.2' 46 implementation 'software.amazon.awssdk:kms:2.23.18' 47 implementation 'software.amazon.awssdk:url-connection-client:2.24.7' 48 testImplementation 'com.google.crypto.tink:tink-android:1.12.0' 49 testImplementation 'com.google.protobuf:protobuf-java-util:3.25.3' 50 testImplementation 'junit:junit:4.13' 51 testImplementation 'org.bouncycastle:bcprov-jdk15on:1.68' 52 testImplementation 'org.conscrypt:conscrypt-openjdk-uber:2.5.1' 53} 54