Skip to content

Commit

Permalink
sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Jan 15, 2025
1 parent 5851776 commit b514e73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ repositories {

dependencies {
implementation(libs.micronaut.gradle.plugin)
implementation(libs.sonatype.scan)
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
plugins {
id("io.micronaut.build.internal.sourcegen-base")
id("io.micronaut.build.internal.module")
id("org.sonatype.gradle.plugins.scan")
}

micronautBuild {
binaryCompatibility {
enabled.set(false)
String ossIndexUsername = System.getenv("OSS_INDEX_USERNAME") ?: project.properties["ossIndexUsername"]
String ossIndexPassword = System.getenv("OSS_INDEX_PASSWORD") ?: project.properties["ossIndexPassword"]
boolean sonatypePluginConfigured = ossIndexUsername != null && ossIndexPassword != null
if (sonatypePluginConfigured) {
ossIndexAudit {
username = ossIndexUsername
password = ossIndexPassword
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ micronaut-test = "4.6.2"
micronaut-data = "4.10.5"
micronaut-validation = "4.8.0"
micronaut-gradle-plugin = "4.4.5"
sonatype-scan = "3.0.0"

[libraries]
# Micronaut
Expand All @@ -33,5 +34,6 @@ google-truth = { module = "com.google.truth:truth", version.ref = "google-truth"
google-compile-testing = { module = "com.google.testing.compile:compile-testing", version.ref = "google-compile-testing" }
google-jimfs = { module = "com.google.jimfs:jimfs", version.ref = "google-jimfs" }

sonatype-scan = { module = "org.sonatype.gradle.plugins:scan-gradle-plugin", version.ref = "sonatype-scan" }
micronaut-gradle-plugin = { module = "io.micronaut.gradle:micronaut-gradle-plugin", version.ref="micronaut-gradle-plugin" }
intellij-java-decompiler = { module = 'com.jetbrains.intellij.java:java-decompiler-engine', version.ref = 'intellij-java-decompiler' }

0 comments on commit b514e73

Please sign in to comment.