[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: Build system.
From: |
gnunet |
Subject: |
[libeufin] 01/02: Build system. |
Date: |
Thu, 19 Jan 2023 14:20:26 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 008979f7b24f07e545532d2cb70b36aea0c2e234
Author: MS <ms@taler.net>
AuthorDate: Thu Jan 19 14:14:42 2023 +0100
Build system.
Removing the "publish" task aimed at releasing
sources.
Adding task to get the project version: libeufinVersion
---
build.gradle | 80 +++++++-----------------------------------------------------
1 file changed, 9 insertions(+), 71 deletions(-)
diff --git a/build.gradle b/build.gradle
index d5628e23..424de014 100644
--- 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
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.