Skip to content

Commit

Permalink
fix(build): add mavenCentral repository to all modules to fix Spotless (
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgogerly authored Dec 1, 2023
1 parent 8908eb8 commit 4f8ea72
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ class SpinnakerBaseProjectConventionsPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
def javaVersion = Flags.targetJava17(project) ? JavaVersion.VERSION_17 : JavaVersion.VERSION_11

project.repositories.mavenCentral()
project.plugins.withType(JavaBasePlugin) {
project.plugins.apply(MavenPublishPlugin)
project.repositories.mavenCentral()
JavaPluginConvention convention = project.convention.getPlugin(JavaPluginConvention)
convention.sourceCompatibility = javaVersion
convention.targetCompatibility = javaVersion
Expand Down

0 comments on commit 4f8ea72

Please sign in to comment.