Skip to content

Commit

Permalink
Merge pull request #162 from codacy/stop-sonatype-publish
Browse files Browse the repository at this point in the history
feature: Stop publishing to sonatype
  • Loading branch information
lolgab authored Feb 26, 2020
2 parents 2fe60be + 2788873 commit 35f2f41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ workflows:
- pack_and_validate:
context: CodacyCircleCI
requires:
- codacy/checkout_and_version
- codacy/checkout_and_version
- codacy/sbt:
name: populate_cache
cmd: sbt ";set scalafmtUseIvy in ThisBuild := false;update"
Expand Down Expand Up @@ -94,9 +94,9 @@ workflows:
requires:
- compile
- codacy/sbt:
name: publish
name: package_artifacts
cmd: |
sbt ";clean;retrieveGPGKeys;publishSigned;sonatypeRelease"
sbt "assembly"
./scripts/publish-native.sh -n codacy-coverage-reporter -m com.codacy.CodacyCoverageReporter -t docker $(cat .version)
Expand All @@ -113,7 +113,7 @@ workflows:
- master
- publish_circleci_artifacts:
requires:
- publish
- package_artifacts
#TODO: Add bintray orb
- codacy/shell:
name: publish_bintray
Expand All @@ -127,13 +127,13 @@ workflows:
- master
context: CodacyBintray
requires:
- publish
- package_artifacts
- codacy/publish_ghr:
name: publish_ghr
path: ~/workdir/artifacts/
context: CodacyGitHub
requires:
- publish
- package_artifacts
- publish_dev:
context: CodacyCircleCI
requires:
Expand Down
11 changes: 1 addition & 10 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,14 @@ assemblyMergeStrategy in assembly := {
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case _ => MergeStrategy.first
}
test in assembly := {}
crossPaths := false
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.withClassifier(Some("assembly"))
}
addArtifact(artifact in (Compile, assembly), assembly)

// HACK: Since we are only using the public resolvers we need to remove the private for it to not fail
resolvers ~= {
_.filterNot(_.name.toLowerCase.contains("codacy"))
}

// HACK: This setting is not picked up properly from the plugin
pgpPassphrase := Option(System.getenv("SONATYPE_GPG_PASSPHRASE")).map(_.toCharArray)

description := "CLI to send coverage reports to Codacy through the API"

scmInfo := Some(
Expand All @@ -55,7 +48,5 @@ scmInfo := Some(
)
)

publicMvnPublish

fork in Test := true
cancelable in Global := true

0 comments on commit 35f2f41

Please sign in to comment.