You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.5KB

  1. /*
  2. * This file was generated by the Gradle 'init' task.
  3. *
  4. * This generated file contains a sample Java Library project to get you started.
  5. * For more details take a look at the Java Libraries chapter in the Gradle
  6. * User Manual available at https://docs.gradle.org/5.4/userguide/java_library_plugin.html
  7. */
  8. plugins {
  9. id 'java-library'
  10. id 'groovy'
  11. id 'eclipse'
  12. id 'application'
  13. id 'idea'
  14. }
  15. // Groovy interop
  16. sourceSets.main.java.srcDirs = []
  17. sourceSets.main.groovy.srcDirs += ["src/main/java"]
  18. compileJava.options.encoding = 'UTF-8'
  19. mainClassName = 'fr.slixe.mining.Main'
  20. group 'fr.slixe'
  21. version '1.0.0'
  22. sourceCompatibility = 1.8
  23. targetCompatibility = 1.8
  24. repositories {
  25. maven {
  26. url 'http://wytrem.github.io/maven'
  27. }
  28. maven {
  29. url 'https://paladin-framework.github.io/maven'
  30. }
  31. mavenCentral()
  32. }
  33. dependencies {
  34. implementation(
  35. 'com.sparkjava:spark-core:2.8.0',
  36. 'net.sf.trove4j:trove4j:3.0.3',
  37. 'com.google.code.gson:gson:2.8.5',
  38. 'com.mashape.unirest:unirest-java:1.4.9',
  39. 'org.apache.commons:commons-lang3:3.8.1',
  40. 'org.apache.logging.log4j:log4j-core:2.10.0',
  41. )
  42. implementation('fr.litarvan.paladin:paladin-framework:1.2.0') {
  43. exclude group: 'org.apache.httpcomponents', module: 'httpcore-nio'
  44. exclude group: 'org.apache.logging.log4j', module: 'log4j-core'
  45. }
  46. }
  47. task fatJar(type: Jar) {
  48. from {
  49. configurations
  50. .runtimeClasspath
  51. .findAll { !it.name.endsWith('pom') }
  52. .collect { it.isDirectory() ? it : zipTree(it) }
  53. }
  54. with jar
  55. baseName = 'dero-mining'
  56. manifest {
  57. attributes 'Main-Class': mainClassName
  58. }
  59. }