diff --git a/Jenkinsfile b/Jenkinsfile
index d69e851da..501491361 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -26,7 +26,27 @@ pipeline {
}
steps {
- sh 'mvn javadoc:jar source:jar deploy -DskipTests'
+ rtMavenDeployer(
+ id: "maven-deployer",
+ serverId: "opencollab-artifactory",
+ releaseRepo: "maven-releases",
+ snapshotRepo: "maven-snapshots"
+ )
+ rtMavenResolver(
+ id: "maven-resolver",
+ serverId: "opencollab-artifactory",
+ releaseRepo: "release",
+ snapshotRepo: "snapshot"
+ )
+ rtMavenRun(
+ pom: 'pom.xml',
+ goals: 'javadoc:jar source:jar install -DskipTests',
+ deployerId: "maven-deployer",
+ resolverId: "maven-resolver"
+ )
+ rtPublishBuildInfo(
+ serverId: "opencollab-artifactory"
+ )
}
}
}
diff --git a/pom.xml b/pom.xml
index 1b544f9ee..011b320f4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,19 +71,6 @@
-
-
- releases
- opencollab-releases
- https://repo.opencollab.dev/maven-releases
-
-
- snapshots
- opencollab-snapshots
- https://repo.opencollab.dev/maven-snapshots
-
-
-
org.projectlombok