Skip to content

Commit

Permalink
Upgrade to CUBA 7.2-SNAPSHOT #92
Browse files Browse the repository at this point in the history
  • Loading branch information
zaharchenko committed Jan 17, 2020
1 parent 2d1cd62 commit 179412d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 38 deletions.
56 changes: 19 additions & 37 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

buildscript {
ext.cubaVersion = '7.1.1'
ext.cubaVersion = '7.2-SNAPSHOT'
repositories {
mavenLocal()
if (System.getenv('HAULMONT_REPOSITORY_URL')) {
Expand All @@ -29,11 +29,7 @@ buildscript {
}

maven {
url 'https://repo.cuba-platform.com/content/groups/work'
credentials {
username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
}
url 'https://dl.bintray.com/cuba-platform/main'
}

}
Expand All @@ -58,7 +54,7 @@ apply(plugin: 'addon-gradle-plugin')
cuba {
artifact {
group = 'com.haulmont.addon.imap'
version = '1.4'
version = '1.5'
isSnapshot = true
}
tomcat {
Expand Down Expand Up @@ -99,20 +95,20 @@ configure([globalModule, coreModule, webModule]) {

sourceSets {
main {
java { srcDirs = ["src"] }
resources {
srcDir 'resources'
}
groovy { srcDirs = ["src"] }
// new config
java.outputDir = new File(project.buildDir, "classes/main")
groovy.outputDir = new File(project.buildDir, "classes/main")
}
test {
java {
srcDirs = ['test']
}
groovy {
srcDirs = ['test']
}
groovy { srcDirs = ["test"] }
// new config
java.outputDir = new File(project.buildDir, "classes/test")
groovy.outputDir = new File(project.buildDir, "classes/test")
}
}
sourceSets.main.output.classesDirs.setFrom(new File(project.buildDir, "classes/main"))
sourceSets.test.output.classesDirs.setFrom(new File(project.buildDir, "classes/test"))

dependencies {
testCompile(
Expand Down Expand Up @@ -185,15 +181,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 @@ -244,23 +233,16 @@ configure(webModule) {
task deployConf(type: Copy) {
from file('src')
include "com/haulmont/addon/imap/**"
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 @@ -283,9 +265,9 @@ task restart(dependsOn: ['stop', ":${modulePrefix}-core:deploy", ":${modulePrefi
socket(server: 'localhost', port: '8788')
}
}
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-4.10.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 179412d

Please sign in to comment.