// SPDX-FileCopyrightText: The openTCS Authors // SPDX-License-Identifier: MIT signing { useInMemoryPgpKeys( project.hasProperty('SIGNING_KEY') ? project.property('SIGNING_KEY') : '', project.hasProperty('SIGNING_PASSWORD') ? project.property('SIGNING_PASSWORD') : '' ) sign publishing.publications } tasks.withType(Sign) { onlyIf { project.hasProperty('SIGNING_KEY') && !project.property('SIGNING_KEY').toString().isEmpty() \ && project.hasProperty('SIGNING_PASSWORD') && !project.property('SIGNING_PASSWORD').toString().isEmpty() } }