mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 15:39:49 +00:00
expose the maven params in the build files as sys envs
This commit is contained in:
parent
9acae60dbf
commit
b78597934f
10
build.gradle
10
build.gradle
@ -18,11 +18,17 @@ explodedDistLibDir = new File(explodedDistDir, 'lib')
|
|||||||
explodedDistBinDir = new File(explodedDistDir, 'bin')
|
explodedDistBinDir = new File(explodedDistDir, 'bin')
|
||||||
explodedDistConfigDir = new File(explodedDistDir, 'config')
|
explodedDistConfigDir = new File(explodedDistDir, 'config')
|
||||||
|
|
||||||
|
mavenRepoUrl = System.getenv("REPO_URL");
|
||||||
|
if (mavenRepoUrl == null) {
|
||||||
// mavenRepoUrl = "file://localhost/" + projectDir.absolutePath + "/build/maven/repository"
|
// mavenRepoUrl = "file://localhost/" + projectDir.absolutePath + "/build/maven/repository"
|
||||||
//mavenSnapshotRepoUrl = "file://localhost/" + projectDir.absolutePath + "/build/maven/snapshotRepository"
|
|
||||||
mavenRepoUrl = "http://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
mavenRepoUrl = "http://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
}
|
||||||
|
mavenSnapshotRepoUrl = System.getenv("SNAPSHOT_REPO_URL");
|
||||||
|
if (mavenSnapshotRepoUrl == null) {
|
||||||
|
// mavenSnapshotRepoUrl = "file://localhost/" + projectDir.absolutePath + "/build/maven/snapshotRepository"
|
||||||
mavenSnapshotRepoUrl = "http://oss.sonatype.org/content/repositories/snapshots"
|
mavenSnapshotRepoUrl = "http://oss.sonatype.org/content/repositories/snapshots"
|
||||||
mavenRepoUser = "kimchy"
|
}
|
||||||
|
mavenRepoUser = System.getenv("REPO_USER")
|
||||||
mavenRepoPass = System.getenv("REPO_PASS")
|
mavenRepoPass = System.getenv("REPO_PASS")
|
||||||
|
|
||||||
jarjarArchivePath = project(":jarjar").file("build/libs/jarjar-$versionNumber" + ".jar").absolutePath
|
jarjarArchivePath = project(":jarjar").file("build/libs/jarjar-$versionNumber" + ".jar").absolutePath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user