Skip to content

Commit

Permalink
enforce Micronaut and other BOMs
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Aug 11, 2023
1 parent cd509aa commit 01b58ba
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
cache: gradle
- uses: gradle/gradle-command-action@v2
with:
arguments: ${{ matrix.versions }}
arguments: ${{ matrix.versions }} --scan --parallel
- name: Show Reports
uses: actions/upload-artifact@v1
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ nexusPluginVersion=1.0.0

micronautVersion = 1.3.7
sentryVersion = 6.16.0
log4jVersion = 2.17.1
awsLog4jVersion = 1.3.0
log4jVersion = 2.20.0
awsLog4jVersion = 1.5.1
systemLambdaVersion = 1.2.0
gruVersion = 0.9.4
bytebuddyVersion = 1.10.17
Expand Down
15 changes: 15 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ buildscript {
}
}

plugins {
id 'com.gradle.enterprise' version '3.6.1'
}

gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"

buildScanPublished { scan ->
file("scan-journal.log") << "${new Date()} - ${scan.buildScanId} - ${scan.buildScanUri}\n"
}
}
}

apply plugin: 'org.kordamp.gradle.settings'

projects {
Expand Down
18 changes: 9 additions & 9 deletions subprojects/micronaut-log4aws/micronaut-log4aws.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ config {
dependencies {
// rewrite("org.openrewrite.recipe:rewrite-micronaut:1.3.0")

annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
api platform("io.micronaut:micronaut-bom:$micronautVersion")
testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
annotationProcessor enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion")
api enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion")
testAnnotationProcessor enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation enforcedPlatform("io.micronaut:micronaut-bom:$micronautVersion")

annotationProcessor platform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
api platform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
testAnnotationProcessor platform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
testImplementation platform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
annotationProcessor enforcedPlatform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
api enforcedPlatform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
testAnnotationProcessor enforcedPlatform("org.apache.logging.log4j:log4j-bom:$log4jVersion")
testImplementation enforcedPlatform("org.apache.logging.log4j:log4j-bom:$log4jVersion")

annotationProcessor "io.micronaut:micronaut-inject-java"

api "io.sentry:sentry-log4j2:$sentryVersion"
api group: 'com.amazonaws', name: 'aws-lambda-java-log4j2', version: awsLog4jVersion
api "org.apache.logging.log4j:log4j-slf4j18-impl:$log4jVersion"
api "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
api "org.apache.logging.log4j:log4j-api:$log4jVersion"
api "org.apache.logging.log4j:log4j-core:$log4jVersion"

Expand Down

0 comments on commit 01b58ba

Please sign in to comment.