1 Star 0 Fork 74

妖逆/gps180

forked from wibim/gps180 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.79 KB
一键复制 编辑 原始数据 按行查看 历史
李泰良 提交于 2022-09-13 17:54 . no message
buildscript {
ext {
springBootVersion = '2.3.0.RELEASE'
transmodeGradleDockerVersion=1.2
}
repositories {
mavenCentral()
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "io.franzbecker:gradle-lombok:3.1.0"
}
}
allprojects {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenCentral()
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://repo.maven.apache.org/maven2" }
}
group = 'com.gps180'
version = '1.0'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
fastjsonVersion = '1.2.70'
guavaVersion = '29.0-jre'
lombokVersion = '1.18.12'
mysqlConnectorVersion = '8.0.20'
mybatisPlusVersion = '3.3.2'
druidBootStarterVersion = '1.1.22'
nettyVersion = '4.1.49.Final'
}
[compileJava, compileTestJava].each() {
it.options.encoding = "UTF-8"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task packageSources(type: Jar) {
from sourceSets.main.allSource
}
task prepareKotlinBuildScriptModel {
}
// task clearJar(type: Delete) {
// delete "$buildDir\\libs\\lib"
// }
//
// task copyJar(type: Copy, dependsOn: 'clearJar') {
// from configurations.runtimeClasspath
// into "$buildDir\\libs\\lib"
// }
//// 拷贝配置文件
// task copyResources(type: Copy) {
// delete "$buildDir\\libs\\config"
// from('src/main/resources')
// into 'build/libs/resources'
// }
//
//
// jar {
////这里排除resources下的文件及文件夹
// excludes = ["lib/**","*.properties","*.xml","*.yml","mybatis/**"]
// dependsOn clearJar
// dependsOn copyJar
//
// dependsOn copyResources
//
// //通过configurations.runtime拿到所有的运行时的依赖jar包,然后.each遍历他,通过it.name获取到每个的jar包的name,赋值
// manifest {
// attributes 'Main-Class': '*.Application'
// attributes 'Class-Path': 'resources/ '+ configurations.runtimeClasspath.files.collect { "lib/$it.name" }.join(' ')
// }
// }
artifacts.archives packageSources
dependencies {
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/LiTaiLiang/gps180.git
git@gitee.com:LiTaiLiang/gps180.git
LiTaiLiang
gps180
gps180
master

搜索帮助