Skip to content

Commit

Permalink
api
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-cherednik committed Jan 30, 2024
1 parent 8e07139 commit 60885a5
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import com.github.jk1.license.filter.LicenseBundleNormalizer
import com.github.jk1.license.render.InventoryHtmlReportRenderer


buildscript {
repositories {
mavenLocal()
Expand All @@ -10,9 +14,11 @@ plugins {
id 'checkstyle'
id 'pmd'
id 'java-library'
id 'org.cadixdev.licenser' version '0.6.1'
id 'io.freefair.lombok' version '8.4'

id 'org.cadixdev.licenser' version '0.6.1'
id 'com.github.jk1.dependency-license-report' version '2.5'

id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
Expand Down Expand Up @@ -43,16 +49,16 @@ configurations {
checkstyle {
toolVersion = '10.10.0'
configFile = "${projectDir}/misc/checkstyle/checkstyle.xml" as File
ignoreFailures = true
ignoreFailures = false
maxWarnings = 0
maxErrors = 0
}

pmd {
toolVersion = '6.21.0'
consoleOutput = true
consoleOutput = false
rulesMinimumPriority = 5
ignoreFailures = true
ignoreFailures = false
ruleSets = [
"${projectDir}/misc/pmd/bestpractices.xml",
"${projectDir}/misc/pmd/codestyle.xml",
Expand Down Expand Up @@ -120,9 +126,12 @@ jacocoTestReport {
}
}

check.dependsOn jacocoTestReport
check.finalizedBy(checkLicense)
check.finalizedBy(generateLicenseReport)
check.finalizedBy(jacocoTestReport)

test {
dependsOn('jar')
useTestNG()
}

Expand All @@ -131,6 +140,13 @@ license {
include '**/*.java'
}

licenseReport {
configurations = ['compileClasspath', 'runtimeClasspath', 'testCompileClasspath', 'testRuntimeClasspath']
renderers = [new InventoryHtmlReportRenderer()]
allowedLicensesFile = new File("$projectDir/misc/license/allowed-licenses.json")
filters = [new LicenseBundleNormalizer(bundlePath: "$projectDir/misc/license/license-normalizer-bundle.json")]
}

signing {
sign publishing.publications
}
Expand Down

0 comments on commit 60885a5

Please sign in to comment.