libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 008979f7b24f07e545532d2cb70b36aea0c2e234
parent a0c46719aa8b4ce1e50c709a6f46e983354336af
Author: MS <ms@taler.net>
Date:   Thu, 19 Jan 2023 14:14:42 +0100

Build system.

Removing the "publish" task aimed at releasing
sources.

Adding task to get the project version: libeufinVersion

Diffstat:
Mbuild.gradle | 81++++++++++---------------------------------------------------------------------
1 file changed, 10 insertions(+), 71 deletions(-)

diff --git a/build.gradle b/build.gradle @@ -41,6 +41,13 @@ task versionFile() { new File("${projectDir}/util/src/main/resources", "version.txt").text = getRootProject().version } +// See: https://stackoverflow.com/questions/24936781/gradle-plugin-project-version-number +task libeufinVersion { + doLast { + println project.version + } +} + task replaceVersionCli(type: Copy) { from file("cli/bin/libeufin-cli") into file("${project.buildDir}/generated/python") @@ -52,7 +59,7 @@ classes { dependsOn replaceVersionCli } -task dist(type: Zip) { +task execArch(type: Zip) { dependsOn versionFile dependsOn replaceVersionCli evaluationDependsOn("nexus") @@ -78,73 +85,4 @@ task dist(type: Zip) { rename { "bin/libeufin-cli" } } into(topDir) -} - -task libeufinSrcJar(type: Jar) { - archiveClassifier = "sources" - from project("sandbox").sourceSets.main.java.srcDirs - from project("nexus").sourceSets.main.java.srcDirs - from("sandbox") { - include("build.gradle") - into("sandbox") - } - from("nexus") { - include("build.gradle") - into("nexus") - } - from "build.gradle" - from "settings.gradle" -} - -publishing { - publications { - mavenJava(MavenPublication) { - artifactId = 'libeufin' - // from components.java - artifact libeufinSrcJar - versionMapping { - usage('java-api') { - fromResolutionOf('runtimeClasspath') - } - usage('java-runtime') { - fromResolutionResult() - } - } - pom { - name = 'libeufin' - description = 'Implementation of EBICS' - url = 'https://libeufin.tech/' - licenses { - license { - name = 'GNU Affero General Public License, Version 3.0+' - url = 'https://www.gnu.org/licenses/agpl-3.0.txt' - } - } - scm { - connection = 'scm:git:git://git.taler.net/libeufin.git' - developerConnection = 'scm:git:ssh://git.taler.net/libeufin.git' - url = 'https://git.taler.net/libeufin.git/' - } - } - } - } - repositories { - maven { - // change URLs to point to your repos, e.g. http://my.org/repo - def releasesRepoUrl = layout.buildDirectory.dir('repos/releases') - def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots') - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - } - } -} - -//signing { -// sign publishing.publications.mavenJava -//} - - -javadoc { - if(JavaVersion.current().isJava9Compatible()) { - options.addBooleanOption('html5', true) - } -} +} +\ No newline at end of file