Advertisement
Guest User

Untitled

a guest
Feb 25th, 2023
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. plugins {
  2. id 'java'
  3. id "application"
  4. }
  5.  
  6. group 'de.redstonepfalz.cachebuilder'
  7. version '1.0-SNAPSHOT'
  8.  
  9. repositories {
  10. mavenCentral()
  11. }
  12.  
  13. sourceSets {
  14. main {
  15. java {
  16. srcDirs = ["src/main/java"]
  17. }
  18. }
  19. }
  20.  
  21. dependencies {
  22. implementation "com.squareup.okhttp3:okhttp:4.10.0"
  23. implementation "com.amazon.paapi:paapi-java-sdk:1.0.0"
  24. implementation "org.apache.logging.log4j:log4j-core:2.20.0"
  25. implementation "org.apache.logging.log4j:log4j-api:2.20.0"
  26. implementation "com.mysql:mysql-connector-j:8.0.32"
  27.  
  28. //testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
  29. //testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
  30. }
  31.  
  32. application {
  33. mainClass = "de.redstonepfalz.cachebuilder.CacheBuilder"
  34. }
  35.  
  36. compileJava {
  37. sourceCompatibility = JavaVersion.VERSION_11
  38. targetCompatibility = JavaVersion.VERSION_11
  39. }
  40.  
  41. jar {
  42. manifest {
  43. attributes (
  44. "Main-Class": "de.redstonepfalz.cachebuilder.CacheBuilder",
  45. "Class-Path": configurations.compileClasspath.collect { "lib/$it.name" }.join(" ")
  46. )
  47. }
  48. archiveFileName = "CacheBuiler.jar"
  49. destinationDirectory = file("build/libs")
  50. }
  51.  
  52. /*
  53. test {
  54. useJUnitPlatform()
  55. }
  56. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement