1 Star 0 Fork 26

lpg_happy/WinTestNG

forked from dongxl123/WinTestNG 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
dongxl123 提交于 2019-07-26 17:31 . fastjson升级
allprojects {
apply plugin: 'maven'
group = 'com.winbaoxian.testng'
version = '1.0.0'
}
subprojects {
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.19.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
repositories {
mavenLocal()
maven { url "http://192.168.180.191:8081/nexus/content/repositories/public" }
maven { url "http://192.168.180.191:8081/nexus/content/repositories/snapshots/" }
maven { url 'https://maven.aliyun.com/repository/public' }
maven {
credentials {
username 'YqEg7E'
password 'kqPhqT56Db'
}
url 'https://repo.rdc.aliyun.com/repository/77327-snapshot-eSlStJ/'
}
mavenCentral()
}
dependencies {
compile 'org.apache.commons:commons-lang3:3.7'
compile 'commons-beanutils:commons-beanutils:1.9.3'
compileOnly 'org.projectlombok:lombok:1.16.22'
compile 'org.mapstruct:mapstruct-jdk8:1.2.0.Final'
compile 'org.mapstruct:mapstruct-processor:1.2.0.Final'
compile 'org.mongodb:mongo-java-driver:3.10.1'
compile 'mysql:mysql-connector-java:8.0.15'
}
task "create-dirs" << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
def isWindows() {
return org.gradle.internal.os.OperatingSystem.current().isWindows()
}
String apidocCmd = isWindows() ? 'apidoc.cmd' : 'apidoc'
task apidocs(type: Exec, description: '执行生成apidoc文档操作') {
workingDir './'
def docCommand = [apidocCmd, '-o', './build/apidocs', '-f', 'java', '--debug', 'true']
commandLine docCommand
}
String servicedocCmd = isWindows() ? 'servicedoc.cmd' : 'servicedoc'
task servicedocs(type: Exec, description: '执行生成servicedoc文档操作') {
workingDir './'
def serviceCommand = [servicedocCmd, '-o', './build/servicedocs', '-f', 'java', '--debug', 'true']
commandLine serviceCommand
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4'
distributionType = 'all'
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lpg_happy/WinTestNG.git
[email protected]:lpg_happy/WinTestNG.git
lpg_happy
WinTestNG
WinTestNG
master

搜索帮助