Skip to content

Commit

Permalink
adjust pom and group to maven central structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed May 17, 2024
1 parent 2368e99 commit a19536d
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 12 deletions.
36 changes: 33 additions & 3 deletions bundle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -47,6 +47,11 @@ jar {
}
}

java {
withJavadocJar()
withSourcesJar()
}

// las2peer bundle jar
shadowJar {
// remove the "-all" at the end of the artifact / file name
Expand Down Expand Up @@ -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"))
}
Expand Down
30 changes: 27 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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'
}
}

}
}
}
Expand Down
30 changes: 27 additions & 3 deletions restmapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')}"
Expand Down Expand Up @@ -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'
}
}

}
}
}
Expand Down
30 changes: 27 additions & 3 deletions webconnector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')}"
Expand Down Expand Up @@ -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'
}
}

}
}
}
Expand Down

0 comments on commit a19536d

Please sign in to comment.