Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.apache.tools.ant.filters.FixCrLfFilter
- import org.apache.tools.ant.filters.ReplaceTokens
- apply plugin: 'java'
- apply plugin: 'eclipse'
- sourceCompatibility = 8
- version = '1.0'
- jar {
- manifest {
- attributes 'Implementation-Title': 'XYZ',
- 'Implementation-Version': version
- }
- }
- repositories {
- mavenCentral()
- }
- eclipse {
- classpath {
- downloadJavadoc = true
- }
- }
- dependencies {
- compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
- compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.1'
- compile group: 'org.json', name: 'json', version: '20160212'
- compile group: 'org.apache.poi', name: 'poi', version: '3.14'
- compile group: 'com.relevantcodes', name: 'extentreports', version: '2.40.2'
- compile 'org.apache.commons:commons-lang3:3.4'
- testCompile group: 'org.testng', name: 'testng', version: '6.9.9'
- }
- test {
- useTestNG {
- suites 'src/test/resources/masterSuite.xml'
- }
- }
- task runTests(type: JavaExec, dependsOn: 'testClasses') {
- main = 'org.testng.TestNg'
- classpath = files("./src/test/resources",
- project.sourceSets.main.compileClasspath,
- project.sourceSets.test.compileClasspath,
- project.sourceSets.main.runtimeClasspath,
- project.sourceSets.test.runtimeClasspath)
- args = ["-parallel", "methods", "-threadcount", "1", "-d", "./build/test-output", "./src/test/resources/masterSuite.xml"]
- }
- uploadArchives {
- repositories {
- flatDir {
- dirs 'repos'
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement