Skip to content

Commit

Permalink
Merge pull request #27 from xenit-eu/XENOPS-954
Browse files Browse the repository at this point in the history
XENOPS-954 Fix publishing to maven central
  • Loading branch information
Ranecdev authored Nov 30, 2021
2 parents d471d64 + b7ce82d commit 6fb1290
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
publish:
needs: [ test, integration-test ]
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions alfresco-zipkin-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ task javadocJar(type: Jar, dependsOn: javadoc) {

apply from: "../publish.gradle"

project.description = "Alfresco core AMP with Zipkin Instrumentation"

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ allprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8

group = 'eu.xenit.alfresco'
version = '1.1.1'
group = 'eu.xenit.alfresco.zipkin'

ext {
alfresco_version = '5.2.f'
Expand Down
4 changes: 3 additions & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ publishing {
all {
pom {
url = 'https://github.com/xenit-eu/alfresco-zipkin'
name = project.name
description = project.description

scm {
connection = 'scm:git:[email protected]:xenit-eu/alfresco-zipkin.git'
Expand Down Expand Up @@ -34,7 +36,7 @@ publishing {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
url = version.toString().endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl

credentials {
username = project.hasProperty('sonatype_username') ? project.sonatype_username : ''
Expand Down

0 comments on commit 6fb1290

Please sign in to comment.