GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-sdk/build.gradle at develop · chohanbin/java-sdk Expand file tree/ Copy pathbuild.gradleMore file actions 142 lines (112 loc) · 2.92 KB / Copy pathbuild.gradleFile metadata and controls142 lines (112 loc) · 2.92 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 plugins { id 'net.researchgate.release' version '2.4.0' } apply from: 'utils.gradle' apply plugin: 'java' apply plugin: 'checkstyle' apply plugin: 'eclipse' apply plugin: 'idea' import org.apache.tools.ant.filters.* archivesBaseName = 'parent' description = 'Client library to use the IBM Watson and Alchemy Services' javadoc { source = 'src/main/java' } checkstyle { ignoreFailures = false } checkstyleMain { ignoreFailures = false } checkstyleTest { ignoreFailures = false } task docs(type: Javadoc) { destinationDir = file("$buildDir/docs/all") } task copyJars(type: Copy) { from subprojects.collect { it.tasks.withType(Jar) } into "$buildDir/allJars" } task signJars(type: Copy) { from subprojects.collect { it.tasks.withType(Sign) } into "$buildDir/allJars" } allprojects { apply plugin: 'java' // *Compatibility has no effect before the 'java' plug-in is applied apply plugin: 'jacoco' sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 repositories { mavenCentral() } } subprojects { dependencies { testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.8.0' testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3' testCompile group: 'com.google.guava', name: 'guava', version: '20.0' testCompile group: 'junit', name: 'junit', version: '4.12' } checkstyleMain { ignoreFailures = false } checkstyleTest { ignoreFailures = false } test { testLogging { events "failed" exceptionFormat "full" } } afterEvaluate { if (plugins.hasPlugin(JavaPlugin)) { rootProject.tasks.docs { source += files(sourceSets.main.allJava) classpath += files(sourceSets*.compileClasspath) } } } } task codeCoverageReport(type: JacocoReport) { // Gather execution data from all sub projects // (change this if you e.g. want to calculate unit test/integration test coverage separately) executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec") // Add all relevant source sets from the sub projects subprojects.each { sourceSets it.sourceSets.main } reports { xml.enabled true xml.destination "${buildDir}/reports/jacoco/report.xml" html.enabled true html.destination "${buildDir}/reports/jacoco" csv.enabled false } } // always run the tests before generating the report codeCoverageReport.dependsOn { subprojects*.test testReport } task testReport(type: TestReport) { destinationDir = file("$buildDir/reports/allTests") // Include the results from the `test` task in all subprojects reportOn subprojects*.test } release { tagTemplate = 'java-sdk-$version' } task startmessage { doLast { println 'starting build' } } task printversion { doLast { println project.version } } beforeReleaseBuild.dependsOn startmessage afterReleaseBuild.dependsOn printversion |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |