Skip to content

Commit 577704a

Browse files
build: set maven deploymentName same as sbt
1 parent b461d20 commit 577704a

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

maven/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@
141141
</goals>
142142
</execution>
143143
<execution>
144-
<id>generate-sources</id>
144+
<id>attach-javadocs</id>
145145
<goals>
146146
<goal>doc-jar</goal>
147147
</goals>
148-
<phase>package</phase>
149148
</execution>
150149
</executions>
151150
<configuration>
@@ -268,7 +267,7 @@
268267
<extensions>true</extensions>
269268
<configuration>
270269
<publishingServerId>central</publishingServerId>
271-
<autoPublish>true</autoPublish>
270+
<autoPublish>false</autoPublish>
272271
</configuration>
273272
</plugin>
274273
<plugin>

project/Release.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ object Release {
1818
crossPublishSigned :: publishM2Core :: stryker4sMvnDeploy :: _
1919
),
2020
// Called by stryker4sPublish(signed)
21-
Command.command(stryker4sMvnDeploy)(mvnDeploy(baseDirectory.value, version.value))
21+
Command.command(stryker4sMvnDeploy)(mvnDeploy(baseDirectory.value, version.value, sonaDeploymentName.value))
2222
)
2323

2424
/** Sets version of mvn project, calls `mvn deploy` and fails state if the command fails
2525
*/
26-
private def mvnDeploy(baseDir: File, version: String)(state: State): State = {
26+
private def mvnDeploy(baseDir: File, version: String, sonaDeploymentName: String)(state: State): State = {
2727

2828
/** Returns a `ProcessBuilder` that runs the given maven command in the maven subdirectory
2929
*/
3030
def runGoal(command: String): process.ProcessBuilder =
3131
process.Process(s"mvn --batch-mode --no-transfer-progress $command -P release", baseDir / "maven")
3232

3333
(runGoal(s"versions:set -DnewVersion=$version") #&&
34-
runGoal(s"deploy --settings settings.xml -DskipTests") #&&
34+
runGoal(s"deploy --settings settings.xml -DskipTests -DdeploymentName=$sonaDeploymentName") #&&
3535
// Reset version setting after deployment
3636
runGoal("versions:revert")).! match {
3737
case 0 => state

0 commit comments

Comments
 (0)