File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
buildSrc/src/main/java/org/springframework/gradle
maven-plugin/src/main/java/io/spring/gradle/plugin/maven Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2022 the original author or authors.
2+ * Copyright 2002-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2727 * @author Steve Riesenberg
2828 */
2929public class SpringPublishLocalPlugin implements Plugin <Project > {
30- @ Override
31- public void apply (Project project ) {
32- project .getPlugins ().withType (MavenPublishPlugin .class , (mavenPublish ) -> {
33- PublishingExtension publishing = project .getExtensions ().getByType (PublishingExtension .class );
34- publishing .getRepositories ().maven ((maven ) -> {
35- maven .setName ("local" );
36- maven .setUrl (new File (project .getRootProject ().getLayout ().getBuildDirectory ().getAsFile ().get (), "publications/repos" ));
37- });
38- });
39- }
30+ @ Override
31+ public void apply (Project project ) {
32+ project .getPlugins ().withType (MavenPublishPlugin .class , (mavenPublish ) -> {
33+ PublishingExtension publishing = project .getExtensions ().getByType (PublishingExtension .class );
34+ publishing .getRepositories ().maven ((maven ) -> {
35+ maven .setName ("local" );
36+ maven .setUrl (new File (project .getRootProject ().getLayout ().getBuildDirectory ().getAsFile ().get (), "publications/repos" ));
37+ });
38+ });
39+ }
4040}
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2023 the original author or authors.
2+ * Copyright 2002-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments