标签:配置 depend jar ant lte 2.0 简单 https 示例
从今年开始,开始换用gradle 了,个人感觉还好,配置不像maven,一堆xml 文件,一个jar 一行字符,内置的task 和很多。自定义task 也挺简单,比ant简单一些。
简单配置文件示例:
group ‘sdfe‘
version ‘1.0-SNAPSHOT‘
apply plugin: ‘java‘
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: ‘org.slf4j‘, name: ‘slf4j-api‘, version: ‘1.7.25‘
// https://mvnrepository.com/artifact/org.apache.mina/mina-filter-compression
compile group: ‘org.apache.mina‘, name: ‘mina-filter-compression‘, version: ‘2.0.17‘
// https://mvnrepository.com/artifact/io.netty/netty-all
compile group: ‘io.netty‘, name: ‘netty-all‘, version: ‘5.0.0.Alpha2‘
// https://mvnrepository.com/artifact/org.apache.mina/mina-core
compile group: ‘org.apache.mina‘, name: ‘mina-core‘, version: ‘3.0.0-M2‘
compile group: ‘org.apache.kafka‘, name: ‘kafka-clients‘, version: ‘1.0.0‘
testCompile group: ‘junit‘, name: ‘junit‘, version: ‘4.12‘
}
比Maven的配置文件简单了很多。
标签:配置 depend jar ant lte 2.0 简单 https 示例
原文地址:https://www.cnblogs.com/anyehome/p/9087223.html