博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
配置Eclipse java 项目
阅读量:7207 次
发布时间:2019-06-29

本文共 1518 字,大约阅读时间需要 5 分钟。

hot3.png

apply plugin: "java"apply plugin: "eclipse"apply plugin: "maven"apply plugin: 'propdeps'apply plugin: 'propdeps-eclipse'apply plugin: 'propdeps-maven'    group = 'org.test'version = "1.0"description = "Test"def jdkVersion = 1.8 buildscript {   def springIoGradleVersion = '0.5.4.RELEASE'  def propdepsVersion = '0.0.7'  repositories {    mavenLocal()     mavenCentral()    jcenter()    maven { url 'http://repo.spring.io/plugins-release' }    maven { url 'https://repository.jboss.org/nexus/content/groups/public/' }  }  dependencies {    //classpath "io.spring.gradle:dependency-management-plugin:$springIoGradleVersion"    classpath "org.springframework.build.gradle:propdeps-plugin:$propdepsVersion"  }}repositories {    mavenLocal()     mavenCentral()    jcenter()    maven { url 'http://repo.spring.io/plugins-release' }    maven { url 'https://repository.jboss.org/nexus/content/groups/public/' }}dependencies {  // mandatory dependencies for using Spock     provided "com.h2database:h2:1.4.182"} //----All subproject -----------//-- Eclipse eclipse.classpath.file {  withXml { xml ->    xml.asNode().findAll { it.@path.startsWith('src/test/') }.each { it.@output = 'test-bin' }  }}eclipse.jdt {    sourceCompatibility = jdkVersion    targetCompatibility = jdkVersion}  eclipseClasspath {    dependsOn(cleanEclipse)}//-- task sourcesJar(type: Jar, dependsOn:classes) {    classifier = 'sources'    from sourceSets.main.allSource}artifacts {    archives sourcesJar}

转载于:https://my.oschina.net/frankies/blog/693362

你可能感兴趣的文章
SQL Server开启READ_COMMITTED_SNAPSHOT
查看>>
Linux学习7之Shell基础--Bash的变量
查看>>
VirtualBox虚拟机增加CentOS根目录容量 LVM扩容
查看>>
Nginx 和 PHP 的两种部署方式比较
查看>>
纪录2b,和诡异,
查看>>
appendFormat
查看>>
centos下安装升级python到python3.5
查看>>
数据结构实验之排序二:交换排序
查看>>
【视频教程】Mini6410/Tiny6410的国嵌视频教程光盘,总共五张
查看>>
桶排序
查看>>
追MM与Java的23种设计模式[转]
查看>>
线程 2
查看>>
[C#][控件]文本类控件
查看>>
[Multimedia][MPEG2]MPEG-2系统原理
查看>>
背包九讲(转)
查看>>
HDU5988 Coding Contest(浮点费用流)
查看>>
css3文字溢出显示省略号
查看>>
Rugy 茶余饭后
查看>>
Linux shell中运行命令后加上字符“&”的作用
查看>>
MySQL存储引擎对比
查看>>