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
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.apache.commons.lang3.SystemUtils
import org.labkey.gradle.plugin.NpmRun
import org.labkey.gradle.task.PurgeNpmAlphaVersions
import org.labkey.gradle.task.PurgeNpmVersions
import org.labkey.gradle.task.ShowDiscrepancies
import org.labkey.gradle.util.BuildUtils
import org.labkey.gradle.util.GroupNames
Expand All @@ -11,7 +12,6 @@ plugins {
id "org.owasp.dependencycheck" version "${owaspDependencyCheckPluginVersion}" apply false
// id "com.github.ben-manes.versions" version "0.39.0"
id "org.labkey.build.multiGit"
id 'org.labkey.versioning' apply false // Need this for our 'base' plugin to get the version specified in settings.gradle
}

allprojects {
Expand Down Expand Up @@ -562,3 +562,10 @@ project.tasks.register('purgeNpmAlphaVersions', PurgeNpmAlphaVersions) {
"removes all packages with versions that match that prefix from Artifactory (e.g., @labkey/components-1.2.3-yourPrefix.0 and @labkey/premium-0.3.4-yourPrefix.1). " +
" Use -PdryRun to see what versions would be deleted without actually doing the deletion."
}

project.tasks.register('purgeNpmVersions', PurgeNpmVersions) {
group = GroupNames.NPM_RUN
description = "Given a package name via -P${PurgeNpmVersions.PACKAGE_NAME_PROP}=name (without the @labkey prefix) and a version list via -P${PurgeNpmVersions.VERSION_LIST_PROP}=fileName for npm package, " +
"removes the versions specified from Artifactory. " +
" Use -PdryRun to see what versions would be deleted without actually doing the deletion."
}
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ windowsProteomicsBinariesVersion=1.0
# The current version numbers for the gradle plugins.
artifactoryPluginVersion=5.2.5
gradleNodePluginVersion=7.1.0
gradlePluginsVersion=7.1.0
gradlePluginsVersion=7.2.0
owaspDependencyCheckPluginVersion=12.1.9
versioningPluginVersion=1.1.3

# Versions of node and npm to use during the build. If set, these versions
# will be downloaded and used. If not set, the existing local installations will be used
Expand Down
2 changes: 0 additions & 2 deletions gradle/settings/all.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}
if (gradlePluginsVersion.contains("SNAPSHOT"))
Expand All @@ -30,7 +29,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}

Expand Down
2 changes: 0 additions & 2 deletions gradle/settings/distributions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}
if (gradlePluginsVersion.contains("SNAPSHOT"))
Expand All @@ -26,7 +25,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}

Expand Down
2 changes: 0 additions & 2 deletions gradle/settings/ehr.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}
if (gradlePluginsVersion.contains("SNAPSHOT"))
Expand All @@ -26,7 +25,6 @@ buildscript {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}

Expand Down
11 changes: 2 additions & 9 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ pluginManagement {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}
if (gradlePluginsVersion.contains("SNAPSHOT") || versioningPluginVersion.contains("SNAPSHOT"))
if (gradlePluginsVersion.contains("SNAPSHOT"))
{
mavenLocal()
maven {
Expand All @@ -27,19 +26,13 @@ pluginManagement {
}
content {
includeGroup "org.labkey.build"
includeGroup "org.labkey.versioning"
}
}
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == 'org.labkey.versioning')
{
// Versioning isn't published with plugin markers
useModule("org.labkey.build:versioning:${versioningPluginVersion}")
}
else if (requested.id.namespace == 'org.labkey.build')
if (requested.id.namespace == 'org.labkey.build')
{
// This doesn't really do anything. The jar on the classpath will take precedence
useVersion("${gradlePluginsVersion}")
Expand Down