Skip to content

Commit

Permalink
CAB-6475: Remove PWS-Client & GWS-Client publish to Artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
agagne committed Jul 30, 2024
1 parent 7c7d1a7 commit d4f0ed0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
ARTIFACTORY_RELEASE_REPO: eaiw-release-local
ARTIFACTORY_RESOLVE_REPO: eaiw-local
ARTIFACTORY_SNAPSHOT_REPO: eaiw-snapshot-local
ARTIFACTORY_CONTEXT: ${{ secrets.ARTIFACTORY_CONTEXT }}
ARTIFACTORY_PUBLISH_USER: ${{ secrets.ARTIFACTORY_PUBLISH_USER }}
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PUBLISH_PASSWORD }}

steps:
- uses: actions/checkout@v2
Expand All @@ -29,8 +22,6 @@ jobs:
restore-keys: ${{ runner.os }}-gradle
- name: Build and test artifacts
run: ./gradlew build
- name: Deploy artifacts
run: ./gradlew build artifactoryPublish
- name: Publish package to github packages
uses: gradle/gradle-build-action@v2
with:
Expand Down
54 changes: 0 additions & 54 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ allprojects {
apply plugin: 'propdeps-eclipse'

apply plugin: 'nu.studer.credentials'
apply plugin: "com.jfrog.artifactory"
apply plugin: 'maven-publish'

sourceCompatibility = 1.8
Expand Down Expand Up @@ -102,57 +101,4 @@ allprojects {
}
}
}


artifactory {
contextUrl = System.getenv('ARTIFACTORY_CONTEXT')
//The base Artifactory URL if not overridden by the publisher/resolver


publish {
repository {
// The Artifactory repository key to publish to
def inferredRepoKey = System.getenv('ARTIFACTORY_SNAPSHOT_REPO')

if (!version.toString().contains("SNAPSHOT") && !version.toString().contains("dirty")) {
inferredRepoKey = System.getenv('ARTIFACTORY_RELEASE_REPO')
}

repoKey = inferredRepoKey
logger.lifecycle "Using $inferredRepoKey as publishing repo"

// Username comes from ~/.gradle/gradle.properties
def resolveUserName = project.getProperties().get('eaiw.artifactoryPublishUser')
if (!resolveUserName?.trim()) {
// try to get it from an environment variable
resolveUserName = System.getenv("ARTIFACTORY_PUBLISH_USER")
}

username = resolveUserName

// Password comes from ~/.gradle/gradle.encrypted.properties
if (credentials?.propertyMissing(resolveUserName)) {
password = credentials[resolveUserName]
} else {
// try to get it from an environment variable
password = System.getenv("ARTIFACTORY_PUBLISH_PASSWORD")
}
}

defaults {
publications('mavenJava')
}
}

}

// make sure we have an artifact to publish
artifactoryPublish.dependsOn jar


if (version.toString().contains("dirty")) {
artifactoryPublish.skip = true // as documented
artifactoryPublish.onlyIf { false } // NOT documented

}
}

0 comments on commit d4f0ed0

Please sign in to comment.