768cad19 by acetousk

Cleanup component files

1 parent bced5dd3
...@@ -12,6 +12,3 @@ To install run (with moqui-framework): ...@@ -12,6 +12,3 @@ To install run (with moqui-framework):
12 12
13 - Have all email templates setup as 13 - Have all email templates setup as
14 14
15 ### Setup
16
17 - Have all email templates setup as
...\ No newline at end of file ...\ No newline at end of file
......
1 /*
2 * This software is in the public domain under CC0 1.0 Universal plus a
3 * Grant of Patent License.
4 *
5 * To the extent possible under law, the author(s) have dedicated all
6 * copyright and related and neighboring rights to this software to the
7 * public domain worldwide. This software is distributed without any
8 * warranty.
9 *
10 * You should have received a copy of the CC0 Public Domain Dedication
11 * along with this software (see the LICENSE.md file). If not, see
12 * <http://creativecommons.org/publicdomain/zero/1.0/>.
13 */
14
15 apply plugin: 'groovy'
16
17 version = '3.0.0'
18 // sourceCompatibility = '1.8'
19 def moquiDir = file(projectDir.absolutePath + '/../../..')
20 def frameworkDir = file(moquiDir.absolutePath + '/framework')
21
22 repositories {
23 flatDir name: 'localLib', dirs: frameworkDir.absolutePath + '/lib'
24 mavenCentral()
25 }
26
27 // Log4J has annotation processors, disable to avoid warning
28 tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" }
29 tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" }
30
31 dependencies {
32 implementation project(':framework')
33 testImplementation project(':framework').configurations.testImplementation.allDependencies
34 }
35
36 // by default the Java plugin runs test on build, change to not do that (only run test if explicit task)
37 // no longer workds as of gradle 4.8 or possibly earlier, use clear() instead: check.dependsOn.remove(test)
38 check.dependsOn.clear()
39
40 jar {
41 destinationDirectory = file(projectDir.absolutePath + '/lib')
42 // this is required to change from the default that includes the path to this module (ie 'runtime/component/mjml')
43 archiveBaseName = 'moqui-mjml'
44 }
45 task cleanLib(type: Delete) { delete file(jar.archivePath) }
46 clean.dependsOn cleanLib
47
48 test {
49 useJUnitPlatform()
50 testLogging { events "passed", "skipped", "failed" }
51 testLogging.showStandardStreams = true; testLogging.showExceptions = true
52 maxParallelForks 1
53
54 dependsOn cleanTest
55
56 systemProperty 'moqui.runtime', moquiDir.absolutePath + '/runtime'
57 systemProperty 'moqui.conf', 'conf/MoquiDevConf.xml'
58 systemProperty 'moqui.init.static', 'true'
59 maxHeapSize = "512M"
60
61 classpath += files(sourceSets.main.output.classesDirs)
62 // filter out classpath entries that don't exist (gradle adds a bunch of these), or ElasticSearch JarHell will blow up
63 classpath = classpath.filter { it.exists() }
64
65 beforeTest { descriptor ->
66 logger.lifecycle("Running test: ${descriptor}")
67 }
68 }
1 JAR files go in this directory and are picked up automatically by Moqui Framework based on the convention of the directory name 'lib'.
2
3 The build.gradle file uses this directory as the target for the built jar file, and deletes the built jar file as part of the clean task.
4