1 Star 0 Fork 0

Space Of Applications/bookmarks-professor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
SteveJrong 提交于 2021-01-03 23:32 . Initial project.
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'idea'
apply from: 'config.gradle'
buildscript {
// 设置在构建项目时的软件源库
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
// 设置引用在构建项目时的插件
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
// Jar包基础名称
def jarBaseName = ext.project.projectName
// Jar包版本号
def jarVersion = ext.project.projectVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
// 设置编译时的编码
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
// 设置编译时的编码
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
// 设置项目的资源目录位置
sourceSets.main.resources.srcDirs = ["src/main/java", "src/main/resources"]
mainClassName = 'com.stevejrong.music.factory.boot.MusicFactoryApplication'
// 设置Jar包属性
jar {
// 生成Jar包的基础名
baseName = jarBaseName
// 生成Jar包的版本号
version jarVersion
// 生成Jar包的manifest清单属性
manifest {
attributes 'Manifest-Version': 1.0,
'Main-Class': 'com.stevejrong.music.factory.boot.MusicFactoryApplication'
}
}
// 设置项目的软件源库
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
dependencies {
compile("org.springframework:spring-context:$rootProject.ext.dependencies.springContextVersion")
compile("org.jsoup:jsoup:$rootProject.ext.dependencies.jsoupVersion")
compile("com.google.guava:guava:$rootProject.ext.dependencies.guavaVersion")
compile("org.apache.commons:commons-lang3:$rootProject.ext.dependencies.commonsLang3Version")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/stevejrong_soa/bookmarks-professor.git
git@gitee.com:stevejrong_soa/bookmarks-professor.git
stevejrong_soa
bookmarks-professor
bookmarks-professor
master

搜索帮助

A270a887 8829481 3d7a4017 8829481