fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vorbur...@apache.org
Subject [fineract] branch develop updated: FINERACT-1102: Swagger Codegen Client JAR should be available on a Maven repo
Date Mon, 19 Oct 2020 10:31:10 GMT
This is an automated email from the ASF dual-hosted git repository.

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 6b28c0e  FINERACT-1102: Swagger Codegen Client JAR should be available on a Maven
repo
6b28c0e is described below

commit 6b28c0e047185ad2128c8ab475a7d4354d784666
Author: Aleksandar Vidakovic <aleks@apache.org>
AuthorDate: Sat Oct 17 21:15:42 2020 +0200

    FINERACT-1102: Swagger Codegen Client JAR should be available on a Maven repo
---
 build.gradle | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index ae08b4f..c2c858d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -29,7 +29,11 @@ buildscript {
                 'fineract-client'
             ].contains(it.name)
         }
-
+        fineractPublishProjects = subprojects.findAll{
+            [
+                'fineract-client'
+            ].contains(it.name)
+        }
     }
     repositories {
         jcenter()
@@ -453,3 +457,44 @@ configure(project.fineractJavaProjects) {
         }
     }
 }
+
+configure(project.fineractPublishProjects) {
+    apply plugin: 'maven'
+    apply plugin: 'maven-publish'
+
+    publishing {
+        publications {
+            mavenJava(MavenPublication) {
+                from components.java
+
+                versionMapping {
+                    usage('java-api') {
+                        fromResolutionOf('runtimeClasspath')
+                    }
+                    usage('java-runtime') {
+                        fromResolutionResult()
+                    }
+                }
+
+                pom {
+                    name = 'Fineract'
+                    description = 'A secure, multi-tenanted microfinance platform'
+                    url = 'https://fineract.apache.org'
+                    licenses {
+                        license {
+                            name = 'The Apache License, Version 2.0'
+                            url = 'http://www.apache.org/licenses/LICENSE-2.0.html'
+                        }
+                    }
+                    scm {
+                        connection = 'scm:git:https://github.com/apache/fineract.git'
+                        developerConnection = 'scm:git:git://github.com:apache/fineract.git'
+                        url = 'https://fineract.apache.org/'
+                    }
+                }
+            }
+        }
+
+        // TODO FINERACT-1102: Actually use this to deploy to ASF (Apache Software Foundation)
Nexus Maven Repository
+    }
+}


Mime
View raw message