|
| 1 | +buildscript { |
| 2 | + repositories { |
| 3 | + mavenCentral() |
| 4 | + maven { |
| 5 | + url "https://plugins.gradle.org/m2/" |
| 6 | + } |
| 7 | + maven { |
| 8 | + url "https://oss.sonatype.org/content/repositories/snapshots/" |
| 9 | + } |
| 10 | + } |
| 11 | + dependencies { |
| 12 | + classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:4.2.0" |
| 13 | + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0' |
| 14 | + classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.15.0" |
| 15 | + } |
| 16 | +} |
| 17 | + |
| 18 | +apply plugin: 'java' |
| 19 | + |
| 20 | +apply plugin: 'jacoco' |
| 21 | +jacoco { |
| 22 | + toolVersion = "0.8.5-SNAPSHOT" //"0.8.4" |
| 23 | +} |
| 24 | + |
| 25 | +build.dependsOn jacocoTestReport |
| 26 | + |
| 27 | +check.dependsOn jacocoTestReport |
| 28 | + |
| 29 | + |
| 30 | +group = "com.github.akarnokd" |
| 31 | + |
| 32 | +sourceCompatibility = 6 |
| 33 | +targetCompatibility = 6 |
| 34 | + |
| 35 | +repositories { |
| 36 | + mavenCentral() |
| 37 | + maven { |
| 38 | + url "https://oss.sonatype.org/content/repositories/snapshots/" |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +dependencies { |
| 43 | + implementation "io.reactivex.rxjava2:rxjava:2.2.11" |
| 44 | + implementation "io.reactivex.rxjava3:rxjava:3.0.0-RC2" |
| 45 | + testImplementation 'junit:junit:4.12' |
| 46 | +} |
| 47 | + |
| 48 | + |
| 49 | +apply plugin: 'maven' |
| 50 | + |
| 51 | +apply plugin: 'biz.aQute.bnd.builder' |
| 52 | + |
| 53 | +jar { |
| 54 | + bnd ('Bundle-Name': 'rxjava3-bridge', |
| 55 | + 'Bundle-Vendor': 'akarnokd', |
| 56 | + 'Bundle-Description': 'Bridge library between RxJava 2 and RxJava 3', |
| 57 | + 'Import-Package': '!org.junit,!junit.framework,!org.mockito.*,*', |
| 58 | + 'Bundle-DocURL': 'https://github.com/akarnokd/RxJavaBridge') |
| 59 | +} |
| 60 | + |
| 61 | +apply plugin: "com.vanniktech.maven.publish" |
| 62 | + |
| 63 | +test { |
| 64 | + maxHeapSize = "1g" |
| 65 | + testLogging { |
| 66 | + events "started", "failed", "standard_error" // "skipped", "passed" |
| 67 | + exceptionFormat="full" |
| 68 | + // showStandardStreams = true |
| 69 | + } |
| 70 | + jacoco.includes = ["**akarnokd**"] |
| 71 | +} |
| 72 | + |
| 73 | +jacocoTestReport { |
| 74 | + reports { |
| 75 | + xml.enabled = true |
| 76 | + html.enabled = true |
| 77 | + } |
| 78 | +} |
| 79 | + |
| 80 | +jacocoTestReport.dependsOn test |
| 81 | + |
| 82 | +apply plugin: "com.github.hierynomus.license" |
| 83 | + |
| 84 | +license { |
| 85 | + header rootProject.file('HEADER') |
| 86 | + skipExistingHeaders true |
| 87 | + ignoreFailures true |
| 88 | + excludes(["**/*.md", "**/*.txt"]) |
| 89 | +} |
0 commit comments