gradle

  

Maven pom.xml                   Gradle build.gradle

 

   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

build.gradel

 

 

 

 

 

allprojects {
    repositories {
        maven { url 'file:///D:/program/repository'}
        mavenLocal()
        maven { name "Alibaba" ; url "https://maven.aliyun.com/nexus/content/groups/public/" }
        mavenCentral()
		google()
    }

    buildscript { 
        repositories { 
            maven { name "Alibaba" ; url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        }
    }
}

  

 

plugins {
    id 'java'
    id 'war'
    id 'idea'
}

apply plugin: 'war'
apply from: 'file:///d:/gretty.plugin'

group 'org.example'
version '1.0-SNAPSHOT'

sourceCompatibility = '11'
targetCompatibility = '11'


repositories {
    mavenLocal()
    mavenCentral()
    google()
}

dependencies {
    testImplementation 'junit:junit:4.11'
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
    // https://mvnrepository.com/artifact/org.mybatis/mybatis
    implementation group: 'org.mybatis', name: 'mybatis', version: '3.5.7'
    // https://mvnrepository.com/artifact/no.nav.common/auth
    implementation 'no.nav.common:auth:2.2021.08.06_07.00-198496a09554'
}

test {
    useJUnitPlatform()
}

  

 

  

CMD

GRADLE_HOME gradle安装目录

GRADLE_USER_HOME 本地仓库(存放JAR包)

PATH: %GRADLE_HOME%\bin

 

 

 

 

 

 

posted @ 2021-08-07 13:31  ascertain  阅读(86)  评论(0编辑  收藏  举报