Gradle相关目录
├─gradle │ ├── build.gradle │ └── src ├── gradle │ └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle
gradle-wrapper.properties
这是首先考虑的 本项目使用什么版本gradle的控制文件
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:
gradle-wrapper.jar
这个就是用于下载指定版本gradle的jar,它会去gradle-wrapper.properties查询变量然后带入执行
build.gradle
作用类似pom文件
buildscript {
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.2"
}
}
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: 'java'
sourceCompatibility = '1.8'
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
jcenter()
}
dependencies {
compile "io.vertx:vertx-core:$VERTX_VER"
compile "io.vertx:vertx-web:$VERTX_VER"
compile "ch.qos.logback:logback-classic:${LOGBACK_VER}"
}
shadowJar {
baseName = 'mes-im'
classifier = null
version = null
manifest {
attributes 'Main-Class': 'io.vertx.core.Launcher'
attributes 'Main-Verticle': 'MainVerticle'
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
三级目录
|