Sample:
buildscript {
ext {
springBootVersion = '3.1.6'
}
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("org.asciidoctor:asciidoctor-gradle-plugin:1.5.7")
classpath("io.github.swagger2markup:swagger2markup-gradle-plugin:1.3.3")
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1")
}
}
allprojects{
version = project.getProperty('buildNumber')
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: "org.sonarqube"
apply plugin: "jacoco"
group = 'com.vmware'
sourceCompatibility = '17'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
mavenCentral()
jcenter()
}
}