Advertisement
Guest User

Untitled

a guest
May 24th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. // ################################################################
  2. // Build script build block.
  3. // Used to configure the classpath for the build script itself.
  4. // ################################################################
  5.  
  6. buildscript {
  7. repositories {
  8. mavenCentral()
  9. }
  10. dependencies {
  11. classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
  12. }
  13. }
  14.  
  15. // ################################################################
  16. // Plugins.
  17. // ################################################################
  18.  
  19. apply plugin: 'java'
  20. apply plugin: 'idea'
  21. apply plugin: 'org.springframework.boot'
  22. apply plugin: 'io.spring.dependency-management'
  23. apply plugin: 'war'
  24.  
  25. // ################################################################
  26. // Name and version of the jar to build (running the bootjar task).
  27. // ################################################################
  28.  
  29. bootJar {
  30. baseName = 'gerecht'
  31. version = '0.1.0'
  32. mainClassName = 'be.ucll.gerechten.Application'
  33. }
  34.  
  35. war {
  36. baseName = 'gerecht'
  37. version = '0.1.0'
  38. }
  39.  
  40. // ################################################################
  41. // Dependencies are retrieved from repositories.
  42. // ################################################################
  43.  
  44. repositories {
  45. mavenCentral()
  46. }
  47.  
  48. // ################################################################
  49. // Properties.
  50. // ################################################################
  51.  
  52. // default is empty, a java project adds properties of its own:
  53. version = '1.0.0-SNAPSHOT'
  54.  
  55. // version to use when compiling source
  56. sourceCompatibility = 1.8
  57.  
  58. // version to use when generating the compiled class files,
  59. // default same as sourceCompatibility ( so you can usually omit it)
  60. targetCompatibility = 1.8
  61.  
  62. // ################################################################
  63. // Every project and task can contain user-defined properties,
  64. // called extra properties, for use in the script.
  65. // You define them in the ext block.
  66. // ################################################################
  67.  
  68. ext{
  69. jstlVersion = '1.2' // now you can use this throughout the script
  70. tomcatEmbedJasperVersion = '9.0.10'
  71. ecjVersion = '4.4.2'
  72. }
  73.  
  74. // ################################################################
  75. // Dependencies - project dependencies are declared within
  76. // this script block.
  77. /*
  78. Individual dependencies are grouped into configurations:
  79. - compile: specifies the classes needed to compile the production source
  80. - runtime: enumerates the dependencies needed to run the production source
  81. (these include those in the compile configuration)
  82. - testcompile: specifies the classes needed to compile the test source
  83. (by default, the compile dependencies are used to compile the test source)
  84. - testruntime: needed to run the tests (by default: includes the previous 3)
  85. Not always version property, because the spring boot gradle plugin utilizes the
  86. dependency management plugin to automatically determine the correct version,
  87. managed by the spring boot bill of materials (aka BOM).
  88. */
  89. // ################################################################
  90.  
  91. dependencies {
  92. compile "javax.xml.bind:jaxb-api:2.3.0"
  93. compile("org.springframework.boot:spring-boot-starter-web")
  94. compile group: 'javax.servlet', name: 'jstl', version: '1.2'
  95. compile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: '9.0.10'
  96. compile group: 'org.eclipse.jdt.core.compiler', name: 'ecj', version: '4.4.2'
  97. compile("org.springframework.boot:spring-boot-starter-data-jpa")
  98. compile('mysql:mysql-connector-java:8.0.13')
  99. compile("com.h2database:h2")
  100. compile("org.springframework.boot:spring-boot-starter-actuator")
  101.  
  102. // for testing
  103. testCompile group: 'junit', name: 'junit', version: '4.12'
  104. testCompile('org.springframework.boot:spring-boot-starter-test')
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement