Skip to content

Instantly share code, notes, and snippets.

Created February 8, 2016 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ba7de8e301eef7be3f3c to your computer and use it in GitHub Desktop.
Save anonymous/ba7de8e301eef7be3f3c to your computer and use it in GitHub Desktop.
gradle arquillian with wildfly embedded configuration
plugins {
id 'java'
id 'war'
}
webAppDirName = 'WebContent'
group = "living"
version = '0.0.1-SNAPSHOT'
description = "Living Document Sharing Platform"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
maven { url 'https://repository.jboss.org/nexus/content/groups/public-jboss' }
maven { url 'https://repository.jboss.org/nexus/content/repositories' }
maven { url 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases' }
maven { url 'http://repo.gradle.org/gradle/libs-releases-local' }
}
dependencies {
//...
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-junit:2.0.0.0'
testCompile 'org.jglue.cdi-unit:cdi-unit:3.1.3'
testCompile 'org.mockito:mockito-core:2.0.31-beta'
testCompile 'eu.codearte.catch-exception:catch-exception:2.0.0-ALPHA-1'
testCompile 'com.jayway.restassured:rest-assured:2.6.0'
testCompile 'com.carrotsearch:junit-benchmarks:0.7.2'
testCompile 'org.jboss.arquillian.junit:arquillian-junit-container:1.1.11.Final'
testCompile 'org.jboss.arquillian:arquillian-bom:1.1.11.Final'
testRuntime 'org.wildfly:wildfly-arquillian-container-embedded:8.2.1.Final'
testRuntime 'org.wildfly:wildfly-embedded:8.2.1.Final'
testRuntime 'org.wildfly.arquillian:wildfly-arquillian-common:1.0.2.Final'
testRuntime 'org.jboss.logging:jboss-logging:3.3.0.Final'
testCompile 'org.jboss.weld:weld-core:2.3.2.Final'
testCompile 'org.jboss.shrinkwrap:shrinkwrap-depchain:1.2.3'
testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:2.2.1'
testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-gradle-depchain:2.2.1'
testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:2.2.1'
testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:2.2.1'
testCompile 'org.apache.deltaspike.core:deltaspike-core-api:1.5.2'
testCompile 'org.apache.deltaspike.core:deltaspike-core-impl:1.5.2'
testCompile 'org.slf4j:slf4j-simple:1.7.12'
}
test {
systemProperty 'java.util.logging.manager', 'org.jboss.logmanager.LogManager'
testLogging {
events 'passed', 'skipped', 'failed'
exceptionFormat = 'full'
}
}
war {
webInf { from 'src/main/resources/WEB-INF' }
}
sourceSets.all {
output.resourcesDir = output.classesDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment