Skip to content

Commit 831ad22

Browse files
authored
Don't override labkeyVersion property (#55)
* Add helpful error message for standalone build
1 parent 1d9f1a0 commit 831ad22

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

standalone/gradle.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ artifactory_contextUrl=https://artifactory.labkey.com/artifactory
33

44
# Version 1.17.0 or higher is required to fully support building stand-alone modules with the LabKey Gradle plugins
55
# Exact version will vary based on the version of LabKey being built on
6-
gradlePluginsVersion=1.27.0_standaloneBuild-SNAPSHOT
6+
gradlePluginsVersion=1.27.0
77

88
# versions of artifacts required as dependencies
9-
labkeyVersion=21.3.4
9+
#uncomment the version number and set to the desired labkeyVersion
10+
#labkeyVersion=21.3.4
1011
labkeyClientApiVersion=1.3.2
1112

1213
# used by the LabKey Jsp Gradle plugin for declaring dependencies

standalone/settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ buildscript {
2121
// This ensures that the module name is correct when cloned to a non-standard directory
2222
rootProject.name="standalone"
2323

24+
if (!hasProperty("labkeyVersion")) {
25+
throw new GradleException("Define 'labkeyVersion' in 'gradle.properties' to build outside of a standard LabKey enlistment")
26+
}
27+
2428
gradle.beforeProject { project ->
2529
project.repositories {
2630
maven {

0 commit comments

Comments
 (0)