1 Star 0 Fork 0

德林/GrabBaiduData

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
德林 提交于 2022-04-09 19:58 . Initial commit
group 'com.zrscsoft'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
ext {
profile = System.getProperty("env") ?: "dev"
println "[current profile]:" + profile
}
repositories {
maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
maven{ url "http://maven.aliyun.com/nexus/content/repositories/jcenter"}
mavenCentral()
flatDir {dirs 'libs'}
}
dependencies {
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0';
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5';
compile group: 'org.apache.poi', name: 'poi', version: '3.9';
compile group: 'org.apache.poi', name: 'poi-excelant', version: '3.9';
compile group: 'org.apache.poi', name: 'poi-scratchpad', version: '3.9';
compile group: 'junit', name: 'junit', version: '4.12';
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation group: 'com.google.zxing', name: 'core', version: '3.4.1'
implementation group: 'com.intellij', name: 'forms_rt', version: '7.0.3'
implementation fileTree(dir:'libs',include:['*.jar'])
}
sourceSets {
main {
resources {
srcDirs = ["src/main/resources", "env/$profile"]
}
}
}
jar {
String someString = ''
configurations.runtime.each {someString = someString + " lib//"+it.name}
manifest {
attributes 'Main-Class': 'com.xbs.AppMain'
attributes 'Class-Path': someString
}
}
//清除上次的编译过的文件
task clearPj(type:Delete){
delete 'build','target'
}
task copyJar(type:Copy){
from configurations.runtime
into ('build/libs/lib')
}
//把JAR复制到目标目录
task release(type: Copy,dependsOn: [build,copyJar]) {
// from 'conf'
// into ('build/libs/eachend/conf') // 目标位置
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/delyn/GrabBaiduData.git
git@gitee.com:delyn/GrabBaiduData.git
delyn
GrabBaiduData
GrabBaiduData
master

搜索帮助