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.

build.gradle 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. group = 'com.dmdirc'
  2. apply plugin: 'com.dmdirc.git-version'
  3. apply plugin: 'java'
  4. apply plugin: 'maven-publish'
  5. sourceSets {
  6. main {
  7. java.srcDirs = ['src']
  8. resources.srcDirs = ['res']
  9. }
  10. test {
  11. java.srcDirs = ['test']
  12. resources.srcDirs = ['test-res']
  13. }
  14. }
  15. sourceCompatibility = 1.8
  16. targetCompatibility = 1.8
  17. repositories.mavenCentral()
  18. dependencies {
  19. compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'
  20. testCompile group: 'junit', name: 'junit', version: '4.12'
  21. testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.17'
  22. testCompile group: 'com.google.jimfs', name: 'jimfs', version: '1.0'
  23. }
  24. // DMDirc uses 18.0, JimFS has a transient dep on 16.0.1 - force the newer version
  25. configurations.all {
  26. resolutionStrategy.force('com.google.guava:guava:18.0')
  27. }
  28. publishing {
  29. publications {
  30. mavenJava(MavenPublication) {
  31. from components.java
  32. }
  33. }
  34. repositories {
  35. maven {
  36. name 'snapshots'
  37. url 'http://artifactory.dmdirc.com/artifactory/repo'
  38. }
  39. }
  40. }
  41. task wrapper(type: Wrapper) {
  42. gradleVersion = '2.2.1'
  43. }
  44. task publishSnapshot(dependsOn: 'publishMavenJavaPublicationToSnapshotsRepository') << {
  45. }
  46. buildscript {
  47. repositories {
  48. mavenCentral()
  49. maven { url 'http://artifactory.dmdirc.com/artifactory/repo' }
  50. maven { url 'https://dl.bintray.com/dmdirc/releases/' }
  51. }
  52. dependencies {
  53. classpath group: 'com.dmdirc', name: 'git-version', version: '1.0'
  54. }
  55. }