From a19536d6ab1207e6f22e8c32047f7a6ce68244ff Mon Sep 17 00:00:00 2001 From: Tobasco99 Date: Fri, 17 May 2024 13:27:53 +0200 Subject: [PATCH] adjust pom and group to maven central structure --- bundle/build.gradle | 36 +++++++++++++++++++++++++++++++++--- core/build.gradle | 30 +++++++++++++++++++++++++++--- restmapper/build.gradle | 30 +++++++++++++++++++++++++++--- webconnector/build.gradle | 30 +++++++++++++++++++++++++++--- 4 files changed, 114 insertions(+), 12 deletions(-) diff --git a/bundle/build.gradle b/bundle/build.gradle index a678cd1c..94d733e5 100644 --- a/bundle/build.gradle +++ b/bundle/build.gradle @@ -15,7 +15,7 @@ def las2peerBuildNumber = "${project.property('las2peer.build.number')}" def las2peerRelease = System.env.LAS2PEER_RELEASE != null def las2peerVersion = las2peerRelease ? "$las2peerRevision.$las2peerBuildNumber" : "$las2peerRevision-SNAPSHOT" -group = 'org' +group = 'io.github.rwth-acis.org.las2peer' archivesBaseName = 'las2peer-bundle' version = las2peerVersion mainClassName = "i5.las2peer.tools.L2pNodeLauncher" @@ -47,6 +47,11 @@ jar { } } +java { + withJavadocJar() + withSourcesJar() +} + // las2peer bundle jar shadowJar { // remove the "-all" at the end of the artifact / file name @@ -75,12 +80,37 @@ publishing { from components.java artifact shadowJar pom { - artifactId "las2peer-bundle" - packaging "jar" + name = 'las2peer-bundle' + artifactId = 'las2peer-bundle' + description = 'A bundle for the las2peer project' + url = 'https://las2peer.org/' + packaging = 'jar' + licenses { + license { + name = 'MIT License' + url = 'https://github.com/rwth-acis/las2peer?tab=License-1-ov-file#readme' + distribution = 'repo' + } + } + developers { + developer { + name = 'rwth-acis' + email= 'las2peer@dbis.rwth-aachen.de' + organization = 'rwth-acis' + organizationUrl = 'https://las2peer.org/' + } + } + scm { + connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' + developerConnection = 'scm:git:ssh://git@github.com:rwth-acis/las2peer.git' + url = 'https://github.com/rwth-acis/las2peer' + } } // fix pom file by removing dependencies node pom.withXml { + def packagingNode = asNode().appendNode('packaging', 'jar') + Node pomNode = asNode() pomNode.remove(pomNode.get("dependencies")) } diff --git a/core/build.gradle b/core/build.gradle index 174a6a8c..08b1f267 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -11,7 +11,7 @@ def las2peerBuildNumber = "${project.property('las2peer.build.number')}" def las2peerRelease = System.env.LAS2PEER_RELEASE != null def las2peerVersion = las2peerRelease ? "$las2peerRevision.$las2peerBuildNumber" : "$las2peerRevision-SNAPSHOT" -group = 'org' +group = 'io.github.rwth-acis.org.las2peer' archivesBaseName = 'las2peer' version = las2peerVersion mainClassName = "i5.las2peer.tools.L2pNodeLauncher" @@ -319,9 +319,33 @@ publishing { gpr(MavenPublication) { from components.java pom { - artifactId "las2peer" - packaging "jar" + name = 'las2peer' + artifactId = 'las2peer' + description = 'The las2peer core.' + url = 'https://las2peer.org/' + packaging = 'jar' + licenses { + license { + name = 'MIT License' + url = 'https://github.com/rwth-acis/las2peer?tab=License-1-ov-file#readme' + distribution = 'repo' + } + } + developers { + developer { + name = 'rwth-acis' + email= 'las2peer@dbis.rwth-aachen.de' + organization = 'rwth-acis' + organizationUrl = 'https://las2peer.org/' + } + } + scm { + connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' + developerConnection = 'scm:git:ssh://git@github.com:rwth-acis/las2peer.git' + url = 'https://github.com/rwth-acis/las2peer' + } } + } } } diff --git a/restmapper/build.gradle b/restmapper/build.gradle index 5bf10f28..6ea7995b 100644 --- a/restmapper/build.gradle +++ b/restmapper/build.gradle @@ -11,7 +11,7 @@ def las2peerBuildNumber = "${project.property('las2peer.build.number')}" def las2peerRelease = System.env.LAS2PEER_RELEASE != null def las2peerVersion = las2peerRelease ? "$las2peerRevision.$las2peerBuildNumber" : "$las2peerRevision-SNAPSHOT" -group = 'org' +group = 'io.github.rwth-acis.org.las2peer' archivesBaseName = 'las2peer-rest-mapper' version = las2peerVersion sourceCompatibility = "${project.property('java.version')}" @@ -111,9 +111,33 @@ publishing { gpr(MavenPublication) { from components.java pom { - artifactId "las2peer-rest-mapper" - packaging "jar" + name = 'las2peer-rest-mapper' + artifactId = 'las2peer-restmapper' + description = 'The restmapper component of the las2peer project' + url = 'https://las2peer.org/' + packaging = 'jar' + licenses { + license { + name = 'MIT License' + url = 'https://github.com/rwth-acis/las2peer?tab=License-1-ov-file#readme' + distribution = 'repo' + } + } + developers { + developer { + name = 'rwth-acis' + email= 'las2peer@dbis.rwth-aachen.de' + organization = 'rwth-acis' + organizationUrl = 'https://las2peer.org/' + } + } + scm { + connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' + developerConnection = 'scm:git:ssh://git@github.com:rwth-acis/las2peer.git' + url = 'https://github.com/rwth-acis/las2peer' + } } + } } } diff --git a/webconnector/build.gradle b/webconnector/build.gradle index 81e38ce8..29281b27 100644 --- a/webconnector/build.gradle +++ b/webconnector/build.gradle @@ -11,7 +11,7 @@ def las2peerBuildNumber = "${project.property('las2peer.build.number')}" def las2peerRelease = System.env.LAS2PEER_RELEASE != null def las2peerVersion = las2peerRelease ? "$las2peerRevision.$las2peerBuildNumber" : "$las2peerRevision-SNAPSHOT" -group = 'org' +group = 'io.github.rwth-acis.org.las2peer' archivesBaseName = 'las2peer-web-connector' version = las2peerVersion sourceCompatibility = "${project.property('java.version')}" @@ -192,9 +192,33 @@ publishing { gpr(MavenPublication) { from components.java pom { - artifactId "las2peer-web-connector" - packaging "jar" + name = 'las2peer-web-connector' + artifactId = 'las2peer-bundle' + description = 'A bundle for the las2peer project' + url = 'https://las2peer.org/' + packaging = 'jar' + licenses { + license { + name = 'MIT License' + url = 'https://github.com/rwth-acis/las2peer?tab=License-1-ov-file#readme' + distribution = 'repo' + } + } + developers { + developer { + name = 'rwth-acis' + email= 'las2peer@dbis.rwth-aachen.de' + organization = 'rwth-acis' + organizationUrl = 'https://las2peer.org/' + } + } + scm { + connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' + developerConnection = 'scm:git:ssh://git@github.com:rwth-acis/las2peer.git' + url = 'https://github.com/rwth-acis/las2peer' + } } + } } }