Skip to content

Commit 816fe3d

Browse files
Merge 21.3.5 to develop
2 parents e079ded + a170429 commit 816fe3d

21 files changed

+934
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
demo/node_modules
33
demo/resources/web/demo/gen
44
demo/resources/views/gen
5+
dependencies.txt
6+
enlistment.properties
7+
build/
58

69
# Gradle
710
.gradle

standalone/README.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
A simple LabKey module to illustrate how to build outside of the LabKey enlistment.
2+
3+
This simple module was created using LabKey's 'createModule' command and then
4+
removing a few things. It does not include any JSP or XSD files. To include
5+
these, you may need additional tasks for creating additional Jar files, or you
6+
can use the LabKey Gradle plugins. The file `withPlugins_build.gradle` provides
7+
an example of how to use the plugins with a standalone module.
8+
9+
For more details see:
10+
- https://www.labkey.org/Documentation/wiki-page.view?name=gradleModules
11+
- https://github.com/LabKey/gradlePlugin - the repository for the plugins used to
12+
build LabKey
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.labkey.api.standalone;
2+
3+
public class SomeUtils
4+
{
5+
private Integer usefulCount = 0;
6+
7+
public void doSomethingUseful()
8+
{
9+
usefulCount++;
10+
}
11+
12+
public Integer getUsefulCount()
13+
{
14+
return usefulCount;
15+
}
16+
}

standalone/build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// This is a sample gradle file for creating a stand-alone Java module that can be deployed in a LabKey server
2+
// instance. This file applies some of the LabKey Gradle plugins and thus assumes the module layout described
3+
// in the LabKey documentation
4+
// (https://labkey.org/Documentation/wiki-page.view?name=moduleDirectoryStructures)
5+
// For simplicity, the source code does not include JSP files that would be compiled and collected into a JSP jar file
6+
// or XSD files that would be transformed into XMLBeans objects and include in the main jar.
7+
//
8+
// You can refer to the gradlePlugins source code (https://github.com/LabKey/gradlePlugin) for more details on the
9+
// full build process implemented for modules within the LabKey source tree.
10+
//
11+
// To build this module, run:
12+
// ./gradlew module
13+
// This will create a .module file for your project and deposit it in the build directory
14+
// for your standalone module.
15+
//
16+
// See the Gradle documentation for more information (https://docs.gradle.org).
17+
//
18+
import org.labkey.gradle.util.BuildUtils
19+
20+
plugins {
21+
// This plugin brings in the standard tasks for building a LabKey Java module that may include JSPs, XSDs, or npm builds
22+
id 'org.labkey.build.module'
23+
}
24+
25+
project.version="0.0.1-SNAPSHOT" // this can use your own versioning scheme
26+
27+
dependencies
28+
{
29+
implementation "org.labkey.api:issues:${labkeyVersion}" // An example of declaring a dependency on the API jar for a module
30+
external "commons-beanutils:commons-beanutils:${commonsBeanutilsVersion}" // An external dependency to be included in the module's lib directory
31+
}

standalone/gradle.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Location of the repository for various artifacts used in the build
2+
artifactory_contextUrl=https://artifactory.labkey.com/artifactory
3+
4+
# Version 1.17.0 or higher is required to fully support building stand-alone modules with the LabKey Gradle plugins
5+
# Exact version will vary based on the version of LabKey being built on
6+
gradlePluginsVersion=1.27.0_standaloneBuild-SNAPSHOT
7+
8+
# versions of artifacts required as dependencies
9+
labkeyVersion=21.3.4
10+
labkeyClientApiVersion=1.3.2
11+
12+
# used by the LabKey Jsp Gradle plugin for declaring dependencies
13+
apacheTomcatVersion=8.5.51
14+
servletApiVersion=3.0
15+
16+
# Example external dependency used in build file
17+
commonsBeanutilsVersion=1.7.0
57.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

standalone/gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

standalone/gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

standalone/module.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ModuleClass: org.labkey.standalone.StandaloneModule
2+
RequiredServerVersion: 21.3
3+
Label: Example Standalone LabKey module
4+
Description: A simple example of a module that can be built outside of a LabKey enlistment.
5+
URL: http://example.com/FIXME
6+
License: Apache 2.0
7+
LicenseURL: http://www.apache.org/licenses/LICENSE-2.0

0 commit comments

Comments
 (0)