Skip to content

Commit ad43cd0

Browse files
committed
Updates for release series 3.0.0, including build.gradle updates for Gradle 7
1 parent 03bd43b commit ad43cd0

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

MoquiConf.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<!-- No copyright or license for configuration file, details here are not considered a creative work. -->
3-
<moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-2.1.xsd">
3+
<moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd">
44

55
<tools>
66
<tool-factory class="org.moqui.kie.KieToolFactory" init-priority="25" disabled="false"/>

build.gradle

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
apply plugin: 'groovy'
1616

17-
sourceCompatibility = '1.8'
1817
def componentNode = parseComponent(project)
1918
version = componentNode.'@version'
2019
def jarBaseName = componentNode.'@name'
@@ -24,8 +23,11 @@ def frameworkDir = file(moquiDir.absolutePath + '/framework')
2423
// to run use "gradle dependencyUpdates"
2524
apply plugin: 'com.github.ben-manes.versions'
2625
buildscript {
27-
repositories { jcenter() }
28-
dependencies { classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0' }
26+
repositories {
27+
mavenCentral()
28+
maven { url "https://plugins.gradle.org/m2/" }
29+
}
30+
dependencies { classpath 'com.github.ben-manes:gradle-versions-plugin:0.42.0' }
2931
}
3032
dependencyUpdates.resolutionStrategy = { componentSelection { rules -> rules.all { ComponentSelection selection ->
3133
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier -> selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ }
@@ -35,43 +37,43 @@ dependencyUpdates.resolutionStrategy = { componentSelection { rules -> rules.all
3537
repositories {
3638
flatDir name: 'localLib', dirs: frameworkDir.absolutePath + '/lib'
3739
flatDir name: 'librepo', dirs: projectDir.absolutePath + '/librepo'
38-
jcenter()
40+
mavenCentral()
3941
}
4042

4143
// Log4J has annotation processors, disable to avoid warning
4244
tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" }
4345
tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" }
4446

4547
dependencies {
46-
compile project(':framework')
48+
implementation project(':framework')
4749

4850
// javax.rules, needed for Drools
49-
compile 'jsr94:jsr94:1.1' // ???
51+
implementation 'jsr94:jsr94:1.1' // ???
5052

5153
// KIE Libraries: Drools/jBPM/etc
52-
compile 'org.kie:kie-api:7.3.0.Final' // Apache 2.0
53-
compile 'org.drools:drools-core:7.3.0.Final' // Apache 2.0
54-
compile 'org.drools:drools-jsr94:7.2.0.Final' // Apache 2.0
54+
implementation 'org.kie:kie-api:7.3.0.Final' // Apache 2.0
55+
implementation 'org.drools:drools-core:7.3.0.Final' // Apache 2.0
56+
implementation 'org.drools:drools-jsr94:7.2.0.Final' // Apache 2.0
5557
// another big mess drools-compiler depends on a bunch of stuff, including xstream which depends on xmlpull which is
5658
// included in xpp3:xpp3_min, ie redundant classes; so bunch of manual dependencies
57-
compile module('org.drools:drools-compiler:7.3.0.Final') // Apache 2.0
58-
runtime 'org.antlr:antlr-runtime:3.5.2'
59-
runtime 'org.mvel:mvel2:2.3.2.Final'
60-
runtime module('com.thoughtworks.xstream:xstream:1.4.10')
61-
runtime 'xpp3:xpp3_min:1.1.4c' // leave out xmlpull here
62-
runtime 'com.google.protobuf:protobuf-java:3.4.0'
59+
implementation module('org.drools:drools-compiler:7.3.0.Final') // Apache 2.0
60+
runtimeOnly 'org.antlr:antlr-runtime:3.5.2'
61+
runtimeOnly 'org.mvel:mvel2:2.3.2.Final'
62+
runtimeOnly module('com.thoughtworks.xstream:xstream:1.4.10')
63+
runtimeOnly 'xpp3:xpp3_min:1.1.4c' // leave out xmlpull here
64+
runtimeOnly 'com.google.protobuf:protobuf-java:3.4.0'
6365
// NOTE: drools java dialect options include ECLIPSE, JANINO, and NATIVE; NATIVE would be good but broken now with Java 8
6466
// using older version of Janino (2.5.16) as it is the latest version Drools supports
65-
runtime 'org.codehaus.janino:janino:2.5.16' // New BSD
67+
runtimeOnly 'org.codehaus.janino:janino:2.5.16' // New BSD
6668
// 'org.codehaus.janino:janino:2.7.8', 'org.codehaus.janino:commons-compiler:2.7.8', 'org.codehaus.janino:commons-compiler-jdk:2.7.8'
6769
// ECJ latest works fine with Drools but is much bigger/etc and so far we are using mvel and not java dialect anyway
68-
// runtime 'org.eclipse.jdt.core.compiler:ecj:4.5.1'
69-
compile ('org.drools:drools-decisiontables:7.3.0.Final') { // Apache 2.0
70+
// runtimeOnly 'org.eclipse.jdt.core.compiler:ecj:4.5.1'
71+
implementation ('org.drools:drools-decisiontables:7.3.0.Final') { // Apache 2.0
7072
exclude group: 'org.apache.poi'
7173
}
72-
compile 'org.apache.poi:poi:3.17'
74+
implementation 'org.apache.poi:poi:3.17'
7375
// NOTE: org.apache.poi:poi-ooxml-schemas is a required dependency for drools-decisiontables (through poi-ooxml), but it's a huge file and runs fine without it
74-
compile module('org.apache.poi:poi-ooxml:3.17')
76+
implementation module('org.apache.poi:poi-ooxml:3.17')
7577
}
7678

7779
// by default the Java plugin runs test on build, change to not do that (only run test if explicit task)
@@ -86,7 +88,7 @@ jar {
8688
baseName = jarBaseName
8789
}
8890
task copyDependencies { doLast {
89-
copy { from (configurations.runtime - project(':framework').configurations.runtime - project(':framework').jar.archivePath)
91+
copy { from (configurations.runtimeClasspath - project(':framework').configurations.runtimeClasspath - project(':framework').jar.archivePath)
9092
into file(projectDir.absolutePath + '/lib') }
9193
} }
9294
copyDependencies.dependsOn cleanLib

component.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-2.1.xsd"
2+
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd"
33
name="moqui-kie" version="1.0.4"/>

0 commit comments

Comments
 (0)