Advertisement
Favorlock

Untitled

Jul 12th, 2016
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.77 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.         mavenCentral()
  5.         maven {
  6.             url 'https://plugins.gradle.org/m2/'
  7.         }
  8.     }
  9.  
  10.     dependencies {
  11.         classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
  12.     }
  13. }
  14.  
  15. group 'com.favorlock'
  16. version '1.0-SNAPSHOT'
  17.  
  18. apply plugin: 'java'
  19. apply plugin: 'maven'
  20. apply plugin: 'com.github.johnrengelman.shadow'
  21. apply plugin: 'idea'
  22.  
  23. sourceCompatibility = 1.8
  24. targetCompatibility = 1.8
  25.  
  26. ext {
  27.     atomix = '1.0.0-rc9'
  28.     paperspigot = '1.10.2'
  29.     bungeecord = '1.10-SNAPSHOT'
  30. }
  31.  
  32. repositories {
  33.     mavenLocal()
  34.     mavenCentral()
  35.     maven {
  36.         name = 'theminecoder'
  37.         url = 'http://maventemp.theminecoder.me/'
  38.     }
  39.     maven {
  40.         name = 'sonatype'
  41.         url = 'https://oss.sonatype.org/content/groups/public'
  42.     }
  43. }
  44.  
  45. dependencies {
  46.     compile group: 'io.atomix', name: 'atomix-all', version: atomix
  47.     compile group: 'org.paperspigot', name: "paperspigot-$paperspigot", version: paperspigot
  48.     compile (group: 'net.md-5', name: 'bungeecord-api', version: bungeecord) {
  49.         exclude group: 'io.netty'
  50.         exclude group: 'net.sf.trove4j'
  51.         exclude group: 'org.yaml'
  52.     }
  53.     testCompile group: 'junit', name: 'junit', version: '4.11'
  54. }
  55.  
  56. shadowJar {
  57.     dependencies {
  58.         exclude(dependency('.*:guava'))
  59.         exclude(dependency('com.google.code.gson:gson'))
  60.         exclude(dependency('org.paperspigot:.*'))
  61.         exclude(dependency('org.immutables:value'))
  62.         exclude(dependency('org.immutables:builder'))
  63.         exclude(dependency('.*:log4j-core'))
  64.         exclude(dependency('net.md-5:.*'))
  65.     }
  66.  
  67.     relocate 'io.netty', 'com.favorlock.shaded.netty'
  68.     relocate 'io.atomix', 'com.favorlock.shaded.atomix'
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement