Skip to content

Commit c78f343

Browse files
Configure repository content for faster searching for dependencies (#58)
1 parent f0b3a04 commit c78f343

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

build.gradle

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,35 @@ import org.labkey.gradle.util.PomFileHelper
44

55
buildscript {
66
repositories {
7-
mavenCentral()
7+
mavenCentral {
8+
content {
9+
excludeGroupByRegex "org\\.labkey.*"
10+
}
11+
}
812
maven {
913
url "${artifactory_contextUrl}/plugins-release-no-proxy"
14+
mavenContent {
15+
releasesOnly()
16+
}
17+
content {
18+
includeGroup "org.labkey.build"
19+
includeGroup "org.labkey.versioning"
20+
}
1021
}
1122
if (gradlePluginsVersion.contains("SNAPSHOT"))
1223
{
24+
mavenLocal()
1325
maven {
1426
url "${artifactory_contextUrl}/plugins-snapshot-local"
27+
mavenContent {
28+
snapshotsOnly()
29+
}
30+
content {
31+
includeGroup "org.labkey.build"
32+
includeGroup "org.labkey.versioning"
33+
}
1534
}
35+
1636
}
1737
}
1838
dependencies {
@@ -43,6 +63,9 @@ repositories {
4363
// enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
4464
}
4565
}
66+
mavenContent {
67+
releasesOnly()
68+
}
4669
}
4770
}
4871

@@ -206,6 +229,11 @@ project.publishing {
206229
basic(BasicAuthentication)
207230
// enable preemptive authentication to get around https://www.jfrog.com/jira/browse/RTFACT-4434
208231
}
232+
content {
233+
includeGroup "org.labkey"
234+
includeGroup "org.labkey.api"
235+
includeGroup "org.labkey.module"
236+
}
209237
}
210238
}
211239
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ artifactory_contextUrl=https://labkey.jfrog.io/artifactory
77
sourceCompatibility=17
88
targetCompatibility=17
99

10-
gradlePluginsVersion=1.40.1
10+
gradlePluginsVersion=1.41.0
1111

1212
commonsCodecVersion=1.15
1313
commonsLoggingVersion=1.2

0 commit comments

Comments
 (0)