Skip to content

Commit

Permalink
remove property
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Feb 7, 2024
1 parent f3d2c82 commit c3ddaba
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 29 deletions.
20 changes: 15 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
import com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin
import org.gradle.kotlin.dsl.provider.inClassPathMode
import java.time.Duration

plugins {
checkstyle
`java-library`
`maven-publish`
`jacoco-report-aggregation`
Expand Down Expand Up @@ -109,11 +111,18 @@ allprojects {
configFile = rootProject.file("resources/tx-checkstyle-config.xml")
configDirectory.set(rootProject.file("resources"))

tasks.checkstyleMain {
this.source = project.sourceSets.getByName("main").allSource
}

tasks.checkstyleTest {
this.source = project.sourceSets.getByName("test").allSource
}

//checkstyle violations are reported at the WARN level
this.isShowViolations = System.getProperty("checkstyle.verbose", "true").toBoolean()
}


// publishing to OSSRH is handled by the build plugin, but publishing to GH packages
// must be configured separately
publishing {
Expand Down Expand Up @@ -144,8 +153,9 @@ subprojects {
if (project.plugins.hasPlugin("com.github.johnrengelman.shadow") &&
file("${project.projectDir}/src/main/docker/Dockerfile").exists()
) {
val buildDir = project.layout.buildDirectory.get().asFile

val agentFile = project.buildDir.resolve("opentelemetry-javaagent.jar")
val agentFile = buildDir.resolve("opentelemetry-javaagent.jar")
// create task to download the opentelemetry agent
val openTelemetryAgentUrl = "https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.32.0/opentelemetry-javaagent.jar"
val downloadOtel = tasks.create("downloadOtel") {
Expand All @@ -155,7 +165,7 @@ subprojects {
}
// this task could be the first in the graph, so "build/" may not yet exist. Let's be defensive
doFirst {
project.buildDir.mkdirs()
buildDir.mkdirs()
}
// download the jar file
doLast {
Expand All @@ -173,7 +183,7 @@ subprojects {
// this task copies some legal docs into the build folder, so we can easily copy them into the docker images
val copyLegalDocs = tasks.create("copyLegalDocs", Copy::class) {
from(project.rootProject.projectDir)
into("${project.buildDir}/legal")
into("${buildDir}/legal")
include("SECURITY.md", "NOTICE.md", "DEPENDENCIES", "LICENSE")
dependsOn(tasks.named(ShadowJavaPlugin.SHADOW_JAR_TASK_NAME))
}
Expand Down
2 changes: 1 addition & 1 deletion edc-controlplane/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-controlplane/edc-controlplane-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

Expand Down
2 changes: 1 addition & 1 deletion edc-controlplane/edc-runtime-memory/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-dataplane/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-dataplane/edc-dataplane-azure-vault/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-dataplane/edc-dataplane-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/


plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-extensions/bpn-validation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
2 changes: 1 addition & 1 deletion edc-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
2 changes: 1 addition & 1 deletion edc-extensions/postgresql-migration/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
2 changes: 1 addition & 1 deletion edc-extensions/ssi/jws2020-crypto-suite/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/
plugins {
`java-library`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

plugins {
`maven-publish`
Expand Down
2 changes: 0 additions & 2 deletions resources/tx-checkstyle-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@

<module name="Checker">
<property name="charset" value="UTF-8"/>

<property name="severity" value="error"/>

<property name="fileExtensions" value="java, properties, xml"/>
<!-- Excludes all 'module-info.java' files -->
<!-- See https://checkstyle.org/config_filefilters.html -->
<module name="BeforeExecutionExclusionFileFilter">
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/
********************************************************************************/

rootProject.name = "tractusx-edc"

Expand Down

0 comments on commit c3ddaba

Please sign in to comment.