-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust pom and group to maven central structure
- Loading branch information
Showing
4 changed files
with
114 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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= '[email protected]' | ||
organization = 'rwth-acis' | ||
organizationUrl = 'https://las2peer.org/' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' | ||
developerConnection = 'scm:git:ssh://[email protected]: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")) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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= '[email protected]' | ||
organization = 'rwth-acis' | ||
organizationUrl = 'https://las2peer.org/' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' | ||
developerConnection = 'scm:git:ssh://[email protected]:rwth-acis/las2peer.git' | ||
url = 'https://github.com/rwth-acis/las2peer' | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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= '[email protected]' | ||
organization = 'rwth-acis' | ||
organizationUrl = 'https://las2peer.org/' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' | ||
developerConnection = 'scm:git:ssh://[email protected]:rwth-acis/las2peer.git' | ||
url = 'https://github.com/rwth-acis/las2peer' | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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= '[email protected]' | ||
organization = 'rwth-acis' | ||
organizationUrl = 'https://las2peer.org/' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/rwth-acis/las2peer.git' | ||
developerConnection = 'scm:git:ssh://[email protected]:rwth-acis/las2peer.git' | ||
url = 'https://github.com/rwth-acis/las2peer' | ||
} | ||
} | ||
|
||
} | ||
} | ||
} | ||
|