zoukankan      html  css  js  c++  java
  • Gradle设置国内镜像

    以SpringBoot项目为例子。

    build.gradle:

    plugins {
        id 'org.springframework.boot' version '2.3.3.RELEASE'
        id 'io.spring.dependency-management' version '1.0.10.RELEASE'
        id 'java'
    }
    
    group = 'com.abc'
    version = '0.0.1-SNAPSHOT'
    sourceCompatibility = '1.8'
    
    configurations {
        compileOnly {
            extendsFrom annotationProcessor
        }
    }
    
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public' }
        mavenCentral()
    }
    
    dependencies {
        implementation 'org.springframework.boot:spring-boot-starter-web'
        compileOnly 'org.projectlombok:lombok'
        developmentOnly 'org.springframework.boot:spring-boot-devtools'
        annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
        annotationProcessor 'org.projectlombok:lombok'
        testImplementation('org.springframework.boot:spring-boot-starter-test') {
            exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
        }
    }
    
    test {
        useJUnitPlatform()
    }
    

    settings.gradle:

    pluginManagement {
        repositories {
            maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
        }
    }
    rootProject.name = 'hello-jenkins'
    
  • 相关阅读:
    hibernate08--OpenSessionInView
    hibernate07--关联映射
    hibernate06--参数的绑定
    hibernate05--list和iterator
    hibernate04--三种状态之间的转换
    hibernate03增删改查
    hibernate02环境的搭建
    hibernate01ORM的引入
    mongoDB
    spring-boot(三) HowTo
  • 原文地址:https://www.cnblogs.com/caibh/p/13768932.html
Copyright © 2011-2022 走看看