|
| 1 | +/* |
| 2 | + * This project is licensed as below. |
| 3 | + * |
| 4 | + * ************************************************************************** |
| 5 | + * |
| 6 | + * Copyright 2020-2023 Intel Corporation. All Rights Reserved. |
| 7 | + * |
| 8 | + * Redistribution and use in source and binary forms, with or without |
| 9 | + * modification, are permitted provided that the following conditions are met: |
| 10 | + * |
| 11 | + * 1. Redistributions of source code must retain the above copyright notice, |
| 12 | + * this list of conditions and the following disclaimer. |
| 13 | + * |
| 14 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 15 | + * notice, this list of conditions and the following disclaimer in the |
| 16 | + * documentation and/or other materials provided with the distribution. |
| 17 | + * |
| 18 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| 21 | + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER |
| 22 | + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 23 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 24 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 25 | + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 26 | + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 27 | + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 28 | + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | + * |
| 30 | + * ************************************************************************** |
| 31 | + * |
| 32 | + */ |
| 33 | + |
| 34 | +buildscript { |
| 35 | + repositories { |
| 36 | + mavenLocal() |
| 37 | + mavenCentral() |
| 38 | + gradlePluginPortal() |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +plugins { |
| 43 | + alias(libs.plugins.lombok) |
| 44 | + alias(libs.plugins.gradle.versions) |
| 45 | + alias(libs.plugins.modernizer) |
| 46 | + id 'maven-publish' |
| 47 | + id 'java-library' |
| 48 | + id 'idea' |
| 49 | +} |
| 50 | + |
| 51 | +apply from: rootProject.file('gradle/common.gradle') |
| 52 | + |
| 53 | +def buildVersion = ext.getBuildVersion() |
| 54 | + |
| 55 | +jar { |
| 56 | + archiveBaseName.set('CommandCore') |
| 57 | + archiveVersion.set(buildVersion) |
| 58 | + manifest { |
| 59 | + attributes( |
| 60 | + 'Sealed': 'true', |
| 61 | + 'Implementation-Title': 'Intel Command Core library', |
| 62 | + 'Implementation-Version': buildVersion |
| 63 | + ) |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +sourceCompatibility = JavaVersion.VERSION_17 |
| 68 | +targetCompatibility = JavaVersion.VERSION_17 |
| 69 | + |
| 70 | +group = 'com.intel.bkp.command' |
| 71 | +version = buildVersion |
| 72 | + |
| 73 | + |
| 74 | +test { |
| 75 | + useJUnitPlatform() |
| 76 | +} |
| 77 | + |
| 78 | +repositories { |
| 79 | + mavenLocal() |
| 80 | + mavenCentral() |
| 81 | +} |
| 82 | + |
| 83 | +dependencies { |
| 84 | + implementation project(":Utils") |
| 85 | + implementation project(":CryptoCore") |
| 86 | + implementation project(":ServiceCore") |
| 87 | + |
| 88 | + implementation libs.slf4j.api |
| 89 | + |
| 90 | + testImplementation project(':TestLibrary') |
| 91 | + testImplementation platform(libs.junit.bom) |
| 92 | + testImplementation libs.junit.jupiter |
| 93 | + testImplementation libs.bundles.mockito |
| 94 | +} |
| 95 | + |
| 96 | +publishing { |
| 97 | + publications { |
| 98 | + mavenJava(MavenPublication) { |
| 99 | + from components.java |
| 100 | + } |
| 101 | + } |
| 102 | +} |
0 commit comments