您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

96 行
3.7 KiB

  1. /*
  2. * This build file was generated by the Gradle 'init' task.
  3. *
  4. * This generated file contains a commented-out sample Java project to get you started.
  5. * For more details take a look at the Java Quickstart chapter in the Gradle
  6. * user guide available at https://docs.gradle.org/4.3.1/userguide/tutorial_java_projects.html
  7. */
  8. group = 'cn.afterturn'
  9. version = '0.1-beta'
  10. // Apply the java plugin to add support for Java
  11. apply plugin: 'java'
  12. apply plugin: 'idea'
  13. apply plugin: "io.spring.dependency-management"
  14. buildscript {
  15. ext {
  16. springBootVersion ='1.5.8.RELEASE'
  17. }
  18. repositories {
  19. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  20. mavenLocal()//maven的本地仓
  21. jcenter()//官方仓
  22. }
  23. dependencies {
  24. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  25. classpath("io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE")
  26. }
  27. }
  28. // In this section you declare where to find the dependencies of your project
  29. repositories {
  30. // Use 'jcenter' for resolving your dependencies.
  31. // You can declare any Maven/Ivy/file repository here.
  32. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  33. jcenter()
  34. }
  35. sourceCompatibility = 1.8
  36. targetCompatibility = 1.8
  37. [compileJava, javadoc, compileTestJava]*.options*.encoding = 'UTF-8'
  38. task sourcesJar(type: Jar, dependsOn: classes) {
  39. classifier = 'sources'
  40. from sourceSets.main.allSource
  41. }
  42. artifacts {
  43. archives sourcesJar
  44. }
  45. ext {
  46. springBootVersion ='1.5.8.RELEASE'
  47. springVersion = '4.3.12.RELEASE'
  48. poiVersion='3.15'
  49. easypoiVersion = '3.0.3'
  50. }
  51. // In this section you declare the dependencies for your production and test code
  52. dependencies {
  53. // The production code uses the SLF4J logging API at compile time
  54. compile 'org.slf4j:slf4j-api:1.7.25'
  55. // compile group: 'io.spring.gradle', name: 'dependency-management-plugin', version: '1.0.3.RELEASE'
  56. compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: "$springBootVersion"
  57. compile group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: "$springBootVersion"
  58. compile group: 'org.springframework.boot', name: 'spring-boot-starter-web',version:"$springBootVersion"
  59. compile group: 'cn.afterturn', name: 'easypoi-annotation', version: "$easypoiVersion"
  60. compile group: 'cn.afterturn', name: 'easypoi-base', version: "$easypoiVersion"
  61. compile group: 'cn.afterturn', name: 'easypoi', version: "$easypoiVersion", ext: 'pom'
  62. compile group: 'cn.afterturn', name: 'easypoi-web', version: "$easypoiVersion"
  63. compile group: 'org.apache.poi', name: 'poi', version:"$poiVersion"
  64. compile group: 'org.apache.poi', name: 'poi-ooxml', version:"$poiVersion"
  65. compile group: 'org.apache.poi', name: 'poi-scratchpad', version:"$poiVersion"
  66. compile(group: 'org.apache.poi', name: 'poi-ooxml-schemas', version:"$poiVersion") {
  67. exclude(module: 'xercesImpl')
  68. }
  69. compile group: 'xerces', name: 'xercesImpl', version:'2.9.1'
  70. compile group: 'com.itextpdf', name: 'itextpdf', version:'5.5.6'
  71. compile group: 'com.itextpdf', name: 'itext-asian', version:'5.2.0'
  72. compile group: 'org.apache.commons',name: 'commons-lang3',version: '3.3.2'
  73. // Declare the dependency for your favourite test framework you want to use in your tests.
  74. // TestNG is also supported by the Gradle Test task. Just change the
  75. // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
  76. // 'test.useTestNG()' to your build script.
  77. testCompile 'junit:junit:4.12'
  78. }