Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

build.gradle 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. subprojects {
  2. apply plugin: 'java'
  3. group = 'com.dmdirc.parser'
  4. sourceSets {
  5. main {
  6. java {
  7. srcDir '../src'
  8. }
  9. }
  10. test {
  11. java {
  12. srcDir '../test'
  13. }
  14. }
  15. }
  16. sourceCompatibility = 1.7
  17. targetCompatibility = 1.7
  18. repositories.mavenCentral()
  19. dependencies {
  20. testCompile group: 'junit', name: 'junit', version: '4.+'
  21. testCompile group: 'org.mockito', name: 'mockito-all', version: '1.+'
  22. }
  23. }
  24. project("irc") {
  25. sourceSets {
  26. main {
  27. java {
  28. exclude 'com/dmdirc/parser/common/**'
  29. exclude 'com/dmdirc/parser/interfaces/**'
  30. }
  31. }
  32. test {
  33. java {
  34. exclude 'com/dmdirc/parser/common/**'
  35. exclude 'com/dmdirc/parser/interfaces/**'
  36. }
  37. }
  38. }
  39. dependencies {
  40. compile find("common")
  41. }
  42. }
  43. project("common") {
  44. sourceSets {
  45. main {
  46. java {
  47. exclude 'com/dmdirc/parser/irc/**'
  48. }
  49. }
  50. test {
  51. java {
  52. exclude 'com/dmdirc/harness/**'
  53. exclude 'com/dmdirc/parser/irc/**'
  54. }
  55. }
  56. }
  57. }
  58. task wrapper(type: Wrapper) {
  59. gradleVersion = '2.1'
  60. }
  61. def find(name) {
  62. if (allprojects.find { it.name == name }) {
  63. project(name)
  64. } else if (allprojects.find { it.name == 'plugins:' + name }) {
  65. project('parser:' + name)
  66. } else if (allprojects.find { it.name == 'modules:plugins:' + name }) {
  67. project('modules:parser:' + name)
  68. } else {
  69. println "Couldn't find project $name"
  70. }
  71. }