加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
xxssyyyyssxx 提交于 2020-02-23 20:09 . 版本1.2.5
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
//classpath "com.novoda:bintray-release:0.3.4"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
subprojects{
group 'top.jfunc.network'
version '1.2.5'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
//用于上传到jcenter
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.8
targetCompatibility = 1.8
//统一版本管理
ext {
CommonUtilVersion = '1.8.3.3'
SpringBootVersion = '1.5.7.RELEASE'
SpringVersion = '4.3.11.RELEASE'
OkHttp3Version = '3.14.4'
JoddVersion = '5.1.0-20190624'
ApacheHttpComponentsVersion = '4.5.10'
JUnitVersion = '4.12'
HamcrestVersion = '1.3'
MockServerVersion = '5.5.4'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
//导入本地的依赖包
//compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile ("junit:junit:${JUnitVersion}")
testCompile ("org.hamcrest:hamcrest-core:${HamcrestVersion}")
testCompile ("org.hamcrest:hamcrest-library:${HamcrestVersion}")
// https://mvnrepository.com/artifact/org.mock-server/mockserver-netty
testCompile ("org.mock-server:mockserver-netty:${MockServerVersion}")
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
jar {
manifest {
attributes('Version': "${version}")
attributes('Author': 'xiongshiyan')
attributes('Phone': '15208384257')
attributes('Email': 'yanshixiong@126.com')
attributes('Build-By': 'Gradle-4.6')
attributes('Licences': 'Apache-2.0')
attributes('GitUrl-Gitee': 'https://gitee.com/xxssyyyyssxx/httpclient-interfacing')
attributes('GitUrl-Github': 'https://github.com/xiongshiyan/httpclient-interfacing')
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化