mobilefish

Untitled

Mar 28th, 2021
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. apply plugin: "war"
  2. // apply plugin: 'spring-boot'
  3. apply plugin: 'org.springframework.boot'
  4. apply plugin: "java"
  5. apply plugin: "eclipse"
  6.  
  7.  
  8.  
  9.  
  10.  
  11. sourceCompatibility = 1.8
  12. targetCompatibility = 1.8
  13.  
  14. task myTask {
  15. group = 'my group'
  16. description = 'my description'
  17. }
  18.  
  19. //war {
  20. // baseName = 'calc'
  21. // version = '1.0'
  22. //}
  23.  
  24. jar {
  25. manifest {
  26. attributes 'Main-Class': 'com.wipro.poc.sandbox.java.awsxray.app.MyApplication'
  27. }
  28.  
  29. from {
  30. configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  31. }
  32. }
  33.  
  34.  
  35. springBoot {
  36. mainClass = "com.wipro.poc.sandbox.java.awsxray.app.MyApplication"
  37. }
  38.  
  39. buildscript {
  40. repositories {
  41. maven {
  42. url "https://plugins.gradle.org/m2/"
  43. }
  44. }
  45. dependencies {
  46. classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE"
  47.  
  48. }
  49. }
  50.  
  51. apply plugin: "org.springframework.boot"
  52.  
  53.  
  54.  
  55. repositories {
  56. maven { url 'http://repo.spring.io/libs-release' }
  57. mavenLocal()
  58. mavenCentral()
  59. maven { url "https://oss.sonatype.org/content/groups/public/" }
  60. maven { url "http://repo.spring.io/libs-snapshot" }
  61. }
  62.  
  63. dependencies {
  64. compile([
  65. 'org.springframework.boot:spring-boot-starter-web:1.5.3.RELEASE',
  66. 'org.springframework.boot:spring-boot-starter-actuator:1.5.3.RELEASE',
  67. 'org.springframework.boot:spring-boot-legacy:1.0.0.RELEASE',
  68. 'com.amazonaws:aws-xray-recorder-sdk-core:1.2.1',
  69. 'mysql:mysql-connector-java:8.0.23',
  70. 'org.apache.tomcat:tomcat-jdbc:8.0.36',
  71. 'com.amazonaws:aws-xray-recorder-sdk-sql-mysql'
  72. ])
  73.  
  74. testCompile([
  75. 'junit:junit-dep:4.10'
  76. ])
  77.  
  78. providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
  79. }
  80.  
Advertisement
Add Comment
Please, Sign In to add comment