Files
linea-monorepo/besu-plugins/linea-sequencer/build.gradle
kyzooghost cce0126d90 [Feat] Upgrade Spotless from 6.16 to 6.25 (Breaking change) (#1068)
* remove 2nd subproject.spotless

* make linea-sequencer lint command, do lint command of child projects

* bump spotless to 6.25

* bump ktlint to 0.50.0

* run spotlessApply

* fix spotlessCheck for testing-tools:app

* spotless apply for many kt projects

* spotless apply for many kt projects

* set trailing comma to false in .editorconfig for kt files

* add more .editorconfig settings

* Revert "add more .editorconfig settings"

This reverts commit bd9f040f950930a662e8f815c5d504b3b4403703.

* Revert "set trailing comma to false in .editorconfig for kt files"

This reverts commit 4bcc08aa295c4da8d0bef2c75cf3fe621e0a00ae.

* empty
2025-06-03 00:02:21 +10:00

52 lines
1.4 KiB
Groovy

import com.github.jk1.license.filter.LicenseBundleNormalizer
buildscript {
ext {
distributionIdentifier = "linea-sequencer"
releaseVersion = "v2.1-rc16.2.4"
distributionBaseUrl = "https://github.com/Consensys/linea-besu-upstream/releases/download/"
besuIdentifier = "besu-${libs.versions.besu.get()}"
besuFilename = "${besuIdentifier}.tar.gz"
besuUrl = "${distributionBaseUrl}${libs.versions.besu.get()}/${besuFilename}"
besuPluginsIdentifier = "${distributionIdentifier}-${version}"
besuPluginDir = File.createTempDir("plugins")
}
}
plugins {
id 'java-library'
alias(libs.plugins.dependencyLicenseReport)
}
licenseReport {
// This is for the allowed-licenses-file in checkLicense Task
// Accepts File, URL or String path to local or remote file
allowedLicensesFile = project.file("gradle/allowed-licenses.json")
excludes = []
// If set to true, then all boms will be excluded from the report
excludeBoms = true
filters = [
new LicenseBundleNormalizer(bundlePath: project.file("gradle/license-normalizer-bundle.json"))
]
}
// Make the parent project's spotlessCheck depend on all subproject spotlessCheck tasks
afterEvaluate {
if (tasks.findByName('spotlessCheck')) {
spotlessCheck.dependsOn subprojects.collect { subproject ->
subproject.tasks.matching { task -> task.name == 'spotlessCheck' }
}
}
}
build {
dependsOn checkLicense
}
jar {
enabled = false
}