/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ plugins { id 'java' id 'application' } group 'com.ohos' repositories { maven { url 'https://mirrors.huaweicloud.com/repository/maven/' } } dependencies { implementation 'org.bouncycastle:bcpkix-jdk15on:1.69' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2' implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1' implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1' implementation 'com.google.code.gson:gson:2.9.0' implementation project(':hap_sign_tool_lib') } test { useJUnitPlatform() } jar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE from sourceSets.main.output dependsOn configurations.runtimeClasspath from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } } exclude 'META-INF/*.DF' exclude 'META-INF/*.DSA' manifest { attributes 'Main-Class': 'com.ohos.hapsigntool.HapSignTool' } archiveBaseName = "hap-sign-tool" }