mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
Replace jcenter by mavenCentral to avoid sync delays and stability issues
This commit is contained in:
parent
1d5aa77f39
commit
b552ddb354
10 changed files with 17 additions and 24 deletions
|
@ -7,7 +7,7 @@ import java.time.LocalDateTime
|
|||
|
||||
buildscript {
|
||||
apply from: "${rootDir}/gradle/versions.gradle"
|
||||
repositories.jcenter()
|
||||
repositories.mavenCentral()
|
||||
dependencies {
|
||||
classpath "org.xtext:xtext-gradle-plugin:$versions.xtext_gradle_plugin"
|
||||
classpath "io.spring.gradle:dependency-management-plugin:$versions.dependency_management_plugin"
|
||||
|
|
|
@ -7,7 +7,7 @@ if (!hasProperty('JENKINS_URL')) {
|
|||
|
||||
// The repositories to query when constructing the Xtend compiler classpath
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven {
|
||||
name 'xtend-bootstrap'
|
||||
url "$JENKINS_URL/job/xtend-bootstrap/lastStableBuild/artifact/build-result/maven-repository/"
|
||||
|
|
|
@ -24,7 +24,7 @@ def jenkinsPipelineRepo = { jobName, branch ->
|
|||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
if (findProperty('useJenkinsSnapshots') == 'true') {
|
||||
maven { url "https://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/$MVN_REPOPATH" }
|
||||
maven { url jenkinsPipelineRepo('xtext-lib','autodetect') }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.xtext:xtext-gradle-plugin:2.0.4'
|
||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||
subprojects {
|
||||
ext.xtextVersion = 'unspecified'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.xtext:xtext-gradle-plugin:2.0.4'
|
||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||
subprojects {
|
||||
ext.xtextVersion = 'unspecified'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.xtext:xtext-gradle-plugin:2.0.4'
|
||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||
subprojects {
|
||||
ext.xtextVersion = 'unspecified'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.xtext:xtext-gradle-plugin:2.0.4'
|
||||
|
@ -10,7 +10,7 @@ buildscript {
|
|||
subprojects {
|
||||
ext.xtextVersion = 'unspecified'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
|
|
@ -80,7 +80,7 @@ class ParentProjectDescriptor extends ProjectDescriptor {
|
|||
additionalContent = '''
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.xtext:xtext-gradle-plugin:«config.xtextVersion.xtextGradlePluginVersion»'
|
||||
|
@ -90,7 +90,7 @@ class ParentProjectDescriptor extends ProjectDescriptor {
|
|||
subprojects {
|
||||
ext.xtextVersion = '«config.xtextVersion»'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
«IF config.xtextVersion.isSnapshot»
|
||||
maven {
|
||||
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
||||
|
|
|
@ -137,7 +137,7 @@ public class ParentProjectDescriptor extends ProjectDescriptor {
|
|||
_builder.append("repositories {");
|
||||
_builder.newLine();
|
||||
_builder.append("\t\t");
|
||||
_builder.append("jcenter()");
|
||||
_builder.append("mavenCentral()");
|
||||
_builder.newLine();
|
||||
_builder.append("\t");
|
||||
_builder.append("}");
|
||||
|
@ -169,7 +169,7 @@ public class ParentProjectDescriptor extends ProjectDescriptor {
|
|||
_builder.append("repositories {");
|
||||
_builder.newLine();
|
||||
_builder.append("\t\t");
|
||||
_builder.append("jcenter()");
|
||||
_builder.append("mavenCentral()");
|
||||
_builder.newLine();
|
||||
{
|
||||
boolean _isSnapshot = this.getConfig().getXtextVersion().isSnapshot();
|
||||
|
|
|
@ -21,18 +21,11 @@
|
|||
<url>file:${root-dir}/build/maven-repository</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>BintrayJCenter</id>
|
||||
<url>https://jcenter.bintray.com/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>maven</id>
|
||||
<id>lsp4j</id>
|
||||
<url>https://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/lastStableBuild/artifact/build/maven-repository</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>maven2</id>
|
||||
<id>lib</id>
|
||||
<url>${JENKINS_URL}/job/xtext-lib/job/${upstreamBranch}/lastStableBuild/artifact/build/maven-repository</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
|
Loading…
Reference in a new issue