Skip to content

Commit

Permalink
nomerge: internal artifactory config
Browse files Browse the repository at this point in the history
Signed-off-by: Arturo Volpe <[email protected]>
  • Loading branch information
aVolpe committed Oct 19, 2023
1 parent ba4a3f5 commit cf1251d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PROJECT_VERSION="3.0.0-SNAPSHOT"
PROJECT_VERSION="3.0.1"
40 changes: 35 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import org.gradle.internal.os.OperatingSystem
plugins {
id "com.jfrog.artifactory" version "4.29.0"
}

apply from: 'jpos/libraries.gradle'

evaluate(new File("${project.projectDir}/VERSION"))
artifactoryPublish.skip = true

allprojects {
apply plugin: 'idea'
Expand All @@ -11,10 +16,11 @@ allprojects {
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'signing'
apply plugin: 'project-report'

group = 'org.jpos'
group = 'org.jpos.fintech'
version = binding.variables.get("PROJECT_VERSION") ?: "0.0.1"
[ compileJava, compileTestJava, javadoc ]*.options*.encoding = 'UTF-8'
def isSnapshot = version.contains("SNAPSHOT")
Expand Down Expand Up @@ -91,7 +97,7 @@ subprojects {
}
}
}
groupId = 'org.jpos'
groupId = 'org.jpos.fintech'
artifactId = 'jpos'
from components.java
}
Expand All @@ -113,11 +119,35 @@ subprojects {
}
}

signing {
required { !isSnapshot }
sign publishing.publications.mavenJava
artifactory {
contextUrl = "${artifactory_url}"

publish {
repository {
repoKey = 'libs-release-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
}

defaults {
publications 'mavenJava'
publishBuildInfo = true
publishArtifacts = true
publishPom = true
publishIvy = false
}
}

clientConfig.includeEnvVars = false
clientConfig.envVarsExcludePatterns = '*pwd*,*password*,*PWD*,*PASSWORD*,*Password,*secret*,*SECRET*,*key*,*KEY*,sonar.login'
clientConfig.info.buildNumber = version
}

//signing {
//required { !isSnapshot }
//sign publishing.publications.mavenJava
//}

javadoc {
configure(options) {
windowTitle = "jPOS ${project.version}"
Expand Down

0 comments on commit cf1251d

Please sign in to comment.