5 Star 2 Fork 2

hubert-樂xx / mbean

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 3.57 KB
一键复制 编辑 原始数据 按行查看 历史
hubert 提交于 2018-09-20 14:44 . 打jar 包时, 排除配置文件
buildscript {
ext {
springBootVersion = '2.0.1.RELEASE'
// springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
//apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
//sourceSets.main.java.srcDirs = ['src']
//sourceSets.main.resources.srcDirs = sourceSets.main.java.srcDirs
springBoot {
// >= 2.0
mainClassName = "my.Application"
// < 2.0
// mainClass = "my.Application"
}
jar {
// 这里把 Task jar 给禁用了 org.springframework.boot.gradle.plugin.JavaPluginAction.disableJarTask
//
enabled = true
baseName = 'mbean'
version = 'v0.3.1'
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
exclude '**/*.yml'
}
processResources {
from('src/main/java') {
exclude '**/*.java'
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
jcenter()
mavenCentral()
}
dependencies {
compile ('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework', module: 'spring-webmvc'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
compile('org.springframework.boot:spring-boot-starter-undertow')
// compile('org.springframework.boot:spring-boot-starter-data-jpa')
// compile('org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.2.Final')
// compile group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.1-api', version: '1.0.2.Final'
// compile group: 'javax.persistence', name: 'persistence-api', version: '1.0.2'
// compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
// compile group: 'org.springframework.boot', name: 'spring-boot-starter-cache'
// compile("org.springframework.boot:spring-boot-starter-thymeleaf")
// compile("org.springframework.boot:spring-boot-starter-jetty")
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
// compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.8.2'
// compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
// compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
// compile group: 'log4j', name: 'log4j', version: '1.2.17'
// compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
// https://mvnrepository.com/artifact/com.alibaba/fastjson
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.46'
// https://mvnrepository.com/artifact/commons-io/commons-io
// compile group: 'commons-io', name: 'commons-io', version: '2.5'
// add jsp support.
// runtime('tomcat:tomcat-embed-jasper')
// runtime("org.apache.tomcat.embed:tomcat-embed-jasper")
// compile('javax.servlet:jstl')
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-gradle-plugin
// spring boot gradle 插件
// compile group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '2.0.0.RELEASE'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xnat/mbean.git
git@gitee.com:xnat/mbean.git
xnat
mbean
mbean
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891