Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 59 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
url "https://plugins.gradle.org/m2"
}
maven {
url "${artifactory_contextUrl}/plugins-release-no-proxy"
url "${artifactory_contextUrl}/plugins-release"
}
if (gradlePluginsVersion.contains("SNAPSHOT") || versioningPluginVersion.contains("SNAPSHOT"))
{
Expand Down Expand Up @@ -109,11 +109,24 @@ allprojects {
if (project.hasProperty("artifactory_contextUrl"))
{
maven {
url "${artifactory_contextUrl}/ext-tools-local"
// using individual repos from Artifactory because the pentaho (and gradle-plugins) repositories incorrectly respond with a 200 status code
// even when resources are not available.
url "${artifactory_contextUrl}/libs-release-local"

if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
{
credentials {
username = artifactory_user
password = artifactory_password
}
authentication {
basic(BasicAuthentication) // enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
}
}
}
maven {

url "${artifactory_contextUrl}/libs-release-no-proxy"
url "${artifactory_contextUrl}/ext-release-local"

if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
{
Expand All @@ -127,7 +140,7 @@ allprojects {
}
}
maven {
url "${artifactory_contextUrl}/libs-snapshot-no-proxy"
url "${artifactory_contextUrl}/libs-snapshot"

if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
{
Expand All @@ -140,14 +153,56 @@ allprojects {
}
}
}
maven {
url "${artifactory_contextUrl}/ext-tools-local"
}
// Temporarily uncomment the block below and update the four-digit number to allow building with Tomcat versions that
// haven't been released yet. The "VOTE" emails sent to the Tomcat dev email list include a staging repo URL. In
// addition to updating the url to match, you'll also need to update apacheTomcatVersion in gradle.properties.
// maven {
// url "https://repository.apache.org/content/repositories/orgapachetomcat-1322/"
// }
}
// this is located after our local repos because we need to pick up our version of radeox instead of the one found in mavenCentral
// (should probably have published our mods with a different version)
mavenCentral()
if (project.hasProperty("artifactory_contextUrl"))
{
maven {

url "${artifactory_contextUrl}/sencha"

if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
{
credentials {
username = artifactory_user
password = artifactory_password
}
authentication {
basic(BasicAuthentication) // enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
}
}
}
}
// This repository should always be last because it currently incorrectly returns a 200 status when requesting artifacts it does not have
if (project.hasProperty("artifactory_contextUrl"))
{
maven {

url "${artifactory_contextUrl}/pentaho"

if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
{
credentials {
username = artifactory_user
password = artifactory_password
}
authentication {
basic(BasicAuthentication) // enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
}
}
}
}
}
configurations.all
{
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ versionConflictAction=delete
# the URL for the artifact repository where our build plugins are housed
# as well as the build artifacts. (Be careful not to include a trailing slash
# in the context URL or you will get a 500 error from artifactory.)
artifactory_contextUrl=https://artifactory.labkey.com/artifactory
artifactory_contextUrl=https://labkey.jfrog.io/artifactory

# The source and target versions of Java for compilation tasks
# @JavaRuntimeVersion
Expand Down