|
| 1 | +plugins { |
| 2 | + `java-library` |
| 3 | + scala |
| 4 | + `maven-publish` |
| 5 | + signing |
| 6 | + id("info.solidsoft.pitest") |
| 7 | + id("io.github.cosmicsilence.scalafix") |
| 8 | +} |
| 9 | + |
| 10 | +description = "Yubico internal utilities" |
| 11 | + |
| 12 | +val publishMe by extra(true) |
| 13 | + |
| 14 | +java { |
| 15 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 16 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 17 | +} |
| 18 | + |
| 19 | +dependencies { |
| 20 | + api(platform(rootProject)) |
| 21 | + |
| 22 | + api("com.fasterxml.jackson.core:jackson-databind") |
| 23 | + |
| 24 | + implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-cbor") |
| 25 | + implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8") |
| 26 | + implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") |
| 27 | + implementation("com.google.guava:guava") |
| 28 | + implementation("com.upokecenter:cbor") |
| 29 | + implementation("org.slf4j:slf4j-api") |
| 30 | + |
| 31 | + testImplementation(platform(project(":test-platform"))) |
| 32 | + testImplementation(project(":yubico-util-scala")) |
| 33 | + testImplementation("junit:junit") |
| 34 | + testImplementation("org.scala-lang:scala-library") |
| 35 | + testImplementation("org.scalacheck:scalacheck_2.13") |
| 36 | + testImplementation("org.scalatest:scalatest_2.13") |
| 37 | +} |
| 38 | + |
| 39 | + |
| 40 | +tasks.jar { |
| 41 | + manifest { |
| 42 | + attributes(mapOf( |
| 43 | + "Implementation-Id" to "yubico-util", |
| 44 | + "Implementation-Title" to project.description, |
| 45 | + "Implementation-Version" to project.version, |
| 46 | + "Implementation-Vendor" to "Yubico", |
| 47 | + )) |
| 48 | + } |
| 49 | +} |
| 50 | + |
| 51 | +pitest { |
| 52 | + pitestVersion.set("1.4.11") |
| 53 | + timestampedReports.set(false) |
| 54 | + |
| 55 | + outputFormats.set(listOf("XML", "HTML")) |
| 56 | + |
| 57 | + avoidCallsTo.set(listOf( |
| 58 | + "java.util.logging", |
| 59 | + "org.apache.log4j", |
| 60 | + "org.slf4j", |
| 61 | + "org.apache.commons.logging", |
| 62 | + "com.google.common.io.Closeables", |
| 63 | + )) |
| 64 | +} |
0 commit comments