Skip to content

Commit d5b142f

Browse files
committed
init.gradle with fixed release versions of OR plugins
1 parent 0ae1c18 commit d5b142f

File tree

3 files changed

+44
-12
lines changed

3 files changed

+44
-12
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Copyright 2022 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
initscript {
17+
repositories {
18+
mavenLocal()
19+
maven{ url = uri("https://central.sonatype.com/repository/maven-snapshots") }
20+
mavenCentral()
21+
}
22+
23+
configurations.all {
24+
resolutionStrategy {
25+
cacheChangingModulesFor 0, 'seconds'
26+
cacheDynamicVersionsFor 0, 'seconds'
27+
}
28+
}
29+
30+
dependencies {
31+
classpath 'org.openrewrite.gradle.tooling:plugin:2.8.0'
32+
classpath 'org.openrewrite:rewrite-maven:8.42.5'
33+
}
34+
}
35+
36+
allprojects {
37+
apply plugin: org.openrewrite.gradle.toolingapi.ToolingApiOpenRewriteModelPlugin
38+
}

headless-services/commons/pom.xml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<repository>
7575
<id>sonatype-oss-snapshots</id>
7676
<name>Sonatype OSS Snapshots</name>
77-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
77+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
7878
<snapshots>
7979
<enabled>true</enabled>
8080
</snapshots>
@@ -117,12 +117,6 @@
117117
<commons-io-version>2.16.1</commons-io-version>
118118
<commons-codec-version>1.13</commons-codec-version>
119119

120-
<!-- Rewrite specific properties -->
121-
<rewrite-recipe-bom.version>2.23.1</rewrite-recipe-bom.version>
122-
<gradle.version>8.11</gradle.version>
123-
<rewrite-gradle-tooling-model.version>2.7.0</rewrite-gradle-tooling-model.version>
124-
<jgit-version>7.2.1.202505142326-r</jgit-version>
125-
126120
<antlr.version>4.13.1</antlr.version>
127121

128122
<signing.skip>true</signing.skip>
@@ -143,24 +137,24 @@
143137
<dependency>
144138
<groupId>org.openrewrite.recipe</groupId>
145139
<artifactId>rewrite-recipe-bom</artifactId>
146-
<version>${rewrite-recipe-bom.version}</version>
140+
<version>2.23.1</version>
147141
<type>pom</type>
148142
<scope>import</scope>
149143
</dependency>
150144
<dependency>
151145
<groupId>org.gradle</groupId>
152146
<artifactId>gradle-tooling-api</artifactId>
153-
<version>${gradle.version}</version>
147+
<version>8.11</version>
154148
</dependency>
155149
<dependency>
156150
<groupId>org.openrewrite.gradle.tooling</groupId>
157151
<artifactId>model</artifactId>
158-
<version>${rewrite-gradle-tooling-model.version}</version>
152+
<version>2.7.0</version>
159153
</dependency>
160154
<dependency>
161155
<groupId>org.eclipse.jgit</groupId>
162156
<artifactId>org.eclipse.jgit</artifactId>
163-
<version>${jgit-version}</version>
157+
<version>7.2.1.202505142326-r</version>
164158
</dependency>
165159
<dependency>
166160
<groupId>org.apache.commons</groupId>

headless-services/spring-boot-language-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<repository>
4343
<id>rewrite-snapshots</id>
44-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
44+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
4545
<snapshots>
4646
<enabled>true</enabled>
4747
</snapshots>

0 commit comments

Comments
 (0)