war gerando 2 arquivos he (jars) de versões diferentes
10/12/2016 17:23
grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
/*
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.work.dir = "target/work"
*/
grails.project.work.dir = 'target'
grails.project.source.level = "1.5"
grails.project.target.level = "1.5"
grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.server.port.http = 9000
// jvmArgs make it so that we can run in forked mode without having to use the `--debug-fork` flag
// and also has suspend=n so that it will start up without forcing you to connect a remote debugger first
grails.project.fork = [
// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
//grails 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
// configure settings for the test-app JVM, uses the daemon by default
test: [maxMemory: 1024, minMemory: 128, debug: false, daemon:true],
// configure settings for the run-app JVM
run: [maxMemory: 4560, minMemory: 1024, debug: false, forkReserve:false],
// configure settings for the run-war JVM
war: [maxMemory: 4560, minMemory: 2560, maxPerm: 2560, debug: false, forkReserve:false],
// configure settings for the Console UI JVM
console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]]
grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// specify dependency exclusions here; for example, uncomment this to disable ehcache:
// excludes 'ehcache'
}
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve
legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
mavenLocal()
grailsCentral()
mavenRepo name: "Activiti", root: "https://maven.alfresco.com/nexus/content/groups/public"
mavenCentral()
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
// Pedro Gentil: tentando corrigir o erro "No TLD files were found in resource path"
runtime 'javax.servlet:jstl:1.1.2'
runtime 'taglibs:standard:1.1.2'
//
// runtime 'org.postgresql:postgresql:9.3-1101-jdbc41'
test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
compile "org.jadira.usertype:usertype.jodatime:2.0"
compile 'org.joda:joda-money:0.10.0'
build "commons-dbcp:commons-dbcp:1.4"
/*
compile ('org.apache.shiro:shiro-core:1.2.2',
'org.apache.shiro:shiro-web:1.2.2',
'org.apache.shiro:shiro-spring:1.2.2',
'org.apache.shiro:shiro-ehcache:1.2.2',
'org.apache.shiro:shiro-quartz:1.2.2'){
excludes 'ejb', 'jsf-api', 'servlet-api', 'jsp-api', 'jstl', 'jms',
'connector-api', 'ehcache-core', 'slf4j-api', 'commons-logging'
}
*/
String tomcatVersion = '9.0.0.M1'
compile "org.apache.tomcat.embed:tomcat-embed-core:$tomcatVersion", { exclude 'ecj' }
['el', 'jasper', 'logging-log4j', 'logging-juli', 'websocket'].each {
runtime "org.apache.tomcat.embed:tomcat-embed-$it:$tomcatVersion", { exclude 'ecj' }
}
// Activiti
compile ('org.activiti:activiti-engine:5.20.0') {
excludes 'livetribe-jsr223', 'spring-beans'
}
runtime ('org.activiti:activiti-spring:5.20.0') {
excludes 'spring-context', 'spring-jdbc', 'spring-orm', 'slf4j-log4j12', 'commons-dbcp'
}
} // dependencies
plugins {
// plugins for the build system only
build ":tomcat:9.0.0.M1"
// plugins for the compile step
compile ":scaffolding:2.1.2"
compile ':cache:1.1.8'
compile ':asset-pipeline:1.8.3'
compile ":joda-time:1.5"
//compile ":currencies:1.3.2"
// plugins needed at runtime but not for compilation
// Hibernate
runtime 'org.grails.plugins:hibernate4:4.3.5.2'
//runtime ':hibernate4:4.3.6.1' // :hibernate4:4.3.5.4 ":hibernate4:5.0.1.RELEASE" ":hibernate:3.6.10.19"
//compile "org.grails.plugins:hibernate4:5.0.0.RC1"
//runtime "org.grails.plugins:hibernate4:4.3.5.4"
compile "org.grails.plugins:log-hibernate-stats:0.9"
runtime ":database-migration:1.4.1"
runtime ":jquery:1.11.1"
runtime ":jquery-ui:1.10.3"
// Twitter Bootstrap Scaffolding
//runtime ":twitter-bootstrap:3.2.1"
//runtime ":fields:1.3"
// relatórios print de buscas, exportar para PDF etc.
compile ":jasper:1.11.0"
// plugin para captura de imagem via webcam
compile ":web-snaps:0.1"
//shiro
compile (":shiro:1.2.1") {
excludes([name: 'quartz', group: 'org.opensymphony.quartz'])
}
// pagination
compile ':remote-pagination:0.4.8'
compile ":filter:0.2"
// Modal functionality: https://grails.org/plugin/modaldynamix
//compile ":modaldynamix:0.12"
// compile ":shiro:1.2.1"
// plugin para calendários
// compile ":ic-alendar:0.4.0"
// Uncomment these to enable additional asset-pipeline capabilities
//compile ":sass-asset-pipeline:1.7.4"
//compile ":less-asset-pipeline:1.7.0"X
//compile ":coffee-asset-pipeline:1.7.0"
//compile ":handlebars-asset-pipeline:1.3.0.3"
}
}
?
Para se registrar, clique aqui.