Skip to content

Commit

Permalink
Upgrade to CUBA 7.2-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
glebshalyganov committed Feb 7, 2020
1 parent ac85275 commit 1e6c8cf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 25 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The add-on corresponding to the used platform version will be installed.

| Platform Version | Add-on Version |
|-----------------|----------------|
| 7.2.x | 1.7.0 |
| 7.1.x | 1.6.0 |
| 7.0.x | 1.5.0 |
| 6.10.x | 1.4.0 |
Expand Down
32 changes: 9 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
*/

buildscript {
ext.addonVersion = '1.6-SNAPSHOT'
ext.addonVersion = '1.7-SNAPSHOT'
ext.addonVersion = rootProject.hasProperty('buildVersion') ? rootProject['buildVersion'] : addonVersion

ext.cubaVersion = '7.1.0'
ext.cubaVersion = rootProject.hasProperty('cubaVersion') ? rootProject['cubaVersion'] : '7.2-SNAPSHOT'
repositories {
mavenLocal()

Expand Down Expand Up @@ -148,15 +148,8 @@ configure(coreModule) {

}

task cleanConf(description: 'Cleans up conf directory') {
doLast {
def dir = new File(cuba.tomcat.dir, "/conf/${modulePrefix}-core" )
if (dir.isDirectory()) {
ant.delete(includeemptydirs: true) {
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
}
}
}
task cleanConf(description: 'Cleans up conf directory', type: Delete) {
delete "$cuba.appHome/${modulePrefix}-core/conf"
}

task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
Expand Down Expand Up @@ -190,7 +183,7 @@ configure(guiModule) {
task deployConf(type: Copy) {
from file('src')
include "com/haulmont/addon/dnd/**"
into "$cuba.tomcat.dir/conf/${modulePrefix}"
into "$cuba.appHome/${modulePrefix}/conf"
}
}

Expand Down Expand Up @@ -218,23 +211,16 @@ configure(webModule) {
task deployConf(type: Copy) {
from file('src')
include "com/haulmont/addon/dnd/**"
into "$cuba.tomcat.dir/conf/${modulePrefix}"
into "$cuba.appHome/${modulePrefix}/conf"
}

task clearMessagesCache(type: CubaClearMessagesCache) {
appName = "${modulePrefix}"
}
deployConf.dependsOn clearMessagesCache

task cleanConf(description: 'Cleans up conf directory') {
doLast {
def dir = new File(cuba.tomcat.dir, "/conf/${modulePrefix}" )
if (dir.isDirectory()) {
ant.delete(includeemptydirs: true) {
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
}
}
}
task cleanConf(description: 'Cleans up conf directory', type: Delete) {
delete "$cuba.appHome/${modulePrefix}/conf"
}

task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
Expand All @@ -260,9 +246,9 @@ task restart(dependsOn: ['stop', ":${modulePrefix}-core:deploy" , ":${modulePref
socket(server: 'localhost', port: '8787')
}
}
start.execute()
}
}
restart.finalizedBy start


apply from: 'extra.gradle'
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,11 @@ public Subscription addLayoutClickListener(Consumer<LayoutClickEvent> listener)
if (layoutClickListener == null) {
layoutClickListener = event -> {
Component childComponent = findChildComponent(this, event.getChildComponent());
Component clickedComponent = findChildComponent(this, event.getClickedComponent());
MouseEventDetails mouseEventDetails = WebWrapperUtils.toMouseEventDetails(event);

LayoutClickEvent layoutClickEvent = new LayoutClickEvent(this, childComponent, mouseEventDetails);
LayoutClickEvent layoutClickEvent =
new LayoutClickEvent(this, childComponent, clickedComponent, mouseEventDetails);

publish(LayoutClickEvent.class, layoutClickEvent);
};
Expand Down

0 comments on commit 1e6c8cf

Please sign in to comment.