Skip to content

Commit

Permalink
EPMRPP-86835 || Update releaseMode to use Maven instead of Github (#289)
Browse files Browse the repository at this point in the history
* EPMRPP-86835 || Update releaseMode to use Maven instead of Github

* EPMRPP-86835 || Update lib version
  • Loading branch information
IvanKustau authored Nov 20, 2023
1 parent 83a67f7 commit b96cd43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM --platform=$BUILDPLATFORM gradle:6.8.3-jdk11 AS build
ARG RELEASE_MODE
ARG APP_VERSION
ARG GITHUB_USER
ARG GITHUB_TOKEN
WORKDIR /usr/app
COPY . /usr/app
RUN if [ "${RELEASE_MODE}" = true ]; then \
gradle build --exclude-task test \
-PreleaseMode=true \
-PgithubUserName=${GITHUB_USER} \
-PgithubToken=${GITHUB_TOKEN} \
-Dorg.gradle.project.version=${APP_VERSION}; \
else gradle build --exclude-task test -Dorg.gradle.project.version=${APP_VERSION}; fi

Expand Down
18 changes: 4 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,8 @@ apply from: "$scriptsUrl/signing.gradle"

repositories {
mavenCentral { url "https://repo1.maven.org/maven2" }
maven { url 'https://repo.spring.io/libs-milestone' }
if (releaseMode) {
dependencyRepos.forEach { path ->
maven {
setUrl("https://maven.pkg.github.com/reportportal/${path}")
credentials {
username = findProperty("githubUserName")
password = findProperty("githubToken")
}
}
}
} else {

if (!releaseMode) {
maven { url 'https://jitpack.io' }
}
}
Expand All @@ -53,8 +43,8 @@ dependencies {
implementation 'com.epam.reportportal:commons-rules'
implementation 'com.epam.reportportal:commons-model'
} else {
implementation 'com.github.reportportal:commons-dao:f042158b'
implementation 'com.github.reportportal:commons-rules:933ff17d'
implementation 'com.github.reportportal:commons-dao:dafe9b4d'
implementation 'com.github.reportportal:commons-rules:01ec4d17'
implementation 'com.github.reportportal:commons-model:232e69a5'
}

Expand Down

0 comments on commit b96cd43

Please sign in to comment.