Skip to content

Commit

Permalink
fix builds and add publishing to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed May 13, 2024
1 parent 8277a04 commit cca2cdf
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
21 changes: 20 additions & 1 deletion bundle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ clean.doLast {

publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rwth-acis/las2peer")
Expand All @@ -72,7 +80,18 @@ publishing {
}
publications {
gpr(MavenPublication) {
from(components.java)
from components.java
artifact shadowJar
pom {
artifactId "las2peer-bundle"
packaging "jar"
}

// fix pom file by removing dependencies node
pom.withXml {
Node pomNode = asNode()
pomNode.remove(pomNode.get("dependencies"))
}
}
}
}
Expand Down
14 changes: 13 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,14 @@ publishing.publications.all {

publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rwth-acis/las2peer")
Expand All @@ -317,7 +325,11 @@ publishing {
}
publications {
gpr(MavenPublication) {
from(components.java)
from components.java
pom {
artifactId "las2peer"
packaging "jar"
}
}
}
}
Expand Down
14 changes: 13 additions & 1 deletion restmapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ publishing.publications.all {

publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rwth-acis/las2peer")
Expand All @@ -109,7 +117,11 @@ publishing {
}
publications {
gpr(MavenPublication) {
from(components.java)
from components.java
pom {
artifactId "las2peer-rest-mapper"
packaging "jar"
}
}
}
}
Expand Down
14 changes: 13 additions & 1 deletion webconnector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ publishing.publications.all {

publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rwth-acis/las2peer")
Expand All @@ -190,7 +198,11 @@ publishing {
}
publications {
gpr(MavenPublication) {
from(components.java)
from components.java
pom {
artifactId "las2peer-web-connector"
packaging "jar"
}
}
}
}
Expand Down

0 comments on commit cca2cdf

Please sign in to comment.