Skip to content

Instantly share code, notes, and snippets.

@icot
Created February 26, 2015 13:56
Show Gist options
  • Save icot/cfa2e428e9b84237d102 to your computer and use it in GitHub Desktop.
Save icot/cfa2e428e9b84237d102 to your computer and use it in GitHub Desktop.
dbod build.gradle
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'com.bmuschko.cargo' // For Tomcat deployments
version = '5.20'
// Sets JDK 1.7
sourceCompatibility = 1.7
targetCompatibility = 1.7
// For Cargo plugin
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.bmuschko:gradle-cargo-plugin:2.0.3' }
}
// 1. Get dependencies from Maven local repository
// 2. Get dependencies from Maven central repository
repositories {
mavenLocal()
mavenCentral()
maven { url 'http://mavensync.zkoss.org/maven2' } // ZK Framework
maven { url 'https://oss.sonatype.org/content/groups/public' }
}
dependencies {
compile 'javax:javaee-web-api:7.0'
compile 'org.beanshell:bsh:2.0b4'
compile 'commons-fileupload:commons-fileupload:1.2.2'
compile 'commons-io:commons-io:2.1'
compile 'org.zkoss.zk:zhtml:6.5.4'
compile 'org.zkoss.zk:zk:6.5.4'
compile 'org.zkoss.zk:zkplus:6.5.4'
compile 'org.zkoss.zk:zul:6.5.4'
compile 'org.zkoss.zk:zkbind:6.5.4'
compile 'io.searchbox:jest:0.1.0'
compile 'org.slf4j:slf4j-log4j12:1.6.1'
compile 'org.slf4j:slf4j-simple:1.6.1'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'com.google.visualization:visualization-datasource:1.1.1'
compile 'com.google.guava:guava:16.0.1'
}
cargo {
containerId = 'tomcat7x'
port = 8080
deployable { context = name }
local {
homeDir = file(System.env.TOMCAT_HOME)
outputFile = file('build/output.log')
}
}
// Run this task to re-generate the wrapper
task wrapper (type: Wrapper) {
gradleVersion = '2.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment